Bug 80608

Summary: gnome desktop leaks memory in the icon code
Product: [Retired] Red Hat Linux Reporter: Brian Stein <bstein>
Component: gnome-desktopAssignee: Brian Stein <bstein>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: bstevens
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-01-02 22:04:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
leak fix
none
another leak fixed none

Description Arjan van de Ven 2002-12-28 17:31:32 UTC
simple memory leak:
the icon filename gets replaced in the hashtable only conditional, but in case
the condition doesn't hit the memory for the pathname needs to be freed since
it's no longer used afterwards. Patch with fix attached.

Comment 1 Arjan van de Ven 2002-12-28 17:32:24 UTC
Created attachment 88965 [details]
leak fix

Comment 2 Arjan van de Ven 2002-12-28 17:40:03 UTC
Created attachment 88966 [details]
another leak fixed

The same file had another leak where a strdup()'d string didn't get freed in
one place; smaller leak (typical 6 bytes per time) but still...

Comment 3 Havoc Pennington 2003-01-02 22:04:15 UTC
Ah, looks fixed in CVS already. Should be fine in Rawhide (gnome-desktop 2.1.x, 
well the relevant files have moved to libgnomeui apparently)