Bug 83280 - memory leak in 2.1.90
memory leak in 2.1.90
Status: CLOSED RAWHIDE
Product: Red Hat Linux Beta
Classification: Retired
Component: gnome-panel (Show other bugs)
beta3
All Linux
medium Severity medium
: ---
: ---
Assigned To: Brian Stein
: Triaged
Depends On:
Blocks: 79579
  Show dependency treegraph
 
Reported: 2003-02-01 08:41 EST by Brian Stein
Modified: 2013-03-01 00:14 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-02-12 09:13:31 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Arjan van de Ven 2003-02-01 08:41:47 EST
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 10:01:21 EST
http://bugzilla.gnome.org/show_bug.cgi?id=104988
Comment 2 Alexander Larsson 2003-02-12 09:13:31 EST
fixed in 2.2.0-1.

Note You need to log in before you can comment on or make changes to this bug.