Bug 83280

Summary: memory leak in 2.1.90
Product: [Retired] Red Hat Linux Beta Reporter: Brian Stein <bstein>
Component: gnome-panelAssignee: Brian Stein <bstein>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: beta3CC: bstevens
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-02-12 14:13:31 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:
Bug Depends On:    
Bug Blocks: 79579    

Description Arjan van de Ven 2003-02-01 13:41:47 UTC
Description of problem:

        content = egg_recent_model_read_raw (model, file);
                                                                               
                    
        if (strlen (content) <= 0)
                return NULL;
                                                                               
                    

that leaks memory because a zero length string still occupies memory.
fix:
--- egg-recent-model.c~ 2003-02-01 14:37:50.000000000 +0100
+++ egg-recent-model.c  2003-02-01 14:37:50.000000000 +0100
@@ -717,8 +717,10 @@
  
        content = egg_recent_model_read_raw (model, file);
  
-       if (strlen (content) <= 0)
+       if (strlen (content) <= 0) {
+               g_free(content);
                return NULL;
+       }
  
        parse_info_init (&info);

Comment 1 Havoc Pennington 2003-02-01 15:01:21 UTC
http://bugzilla.gnome.org/show_bug.cgi?id=104988

Comment 2 Alexander Larsson 2003-02-12 14:13:31 UTC
fixed in 2.2.0-1.