Bug 695296 - Leaks monitor objects
Summary: Leaks monitor objects
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Color Management (show other bugs)
Version: 9.14
Hardware: PC Linux
: P4 normal
Assignee: Michael Vrhel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-04 09:17 UTC by Tim Waugh
Modified: 2014-07-15 07:40 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
ghostscript-pthread-leak.patch (608 bytes, patch)
2014-06-04 09:17 UTC, Tim Waugh
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!