Bug 695296

Summary: Leaks monitor objects
Product: Ghostscript Reporter: Tim Waugh <twaugh>
Component: Color ManagementAssignee: Michael Vrhel <michael.vrhel>
Status: RESOLVED FIXED    
Severity: normal CC: chris.liddell
Priority: P4    
Version: 9.14   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: ghostscript-pthread-leak.patch

Description Tim Waugh 2014-06-04 09:17:14 UTC
Created attachment 10969 [details]
ghostscript-pthread-leak.patch

In gsicc_manage.c, gx_monitor_alloc() is used to allocate profile->lock but gs_free_object() is used to free it. Shouldn't gx_monitor_free() be used for this (patch attached)?
Comment 1 Chris Liddell (chrisl) 2014-07-15 07:40:14 UTC
I hadn't seen this report, and this was fixed as a result of working on related issues from another source. But yes, Tim, you are exactly right - thanks!