[ icewm-Patches-2880989 ] fixed memory leak

View: New views
1 Messages — Rating Filter:   Alert me  

[ icewm-Patches-2880989 ] fixed memory leak

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Patches item #2880989, was opened at 2009-10-17 17:07
Message generated for change (Comment added) made by prusnak
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=300031&aid=2880989&group_id=31

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: bugfix
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Sebastian Schöbinger (sts301)
Assigned to: Nobody/Anonymous (nobody)
Summary: fixed memory leak

Initial Comment:
fixed memory leak in /src/icehelp.cc
https://bugzilla.novell.com/show_bug.cgi?id=546806

----------------------------------------------------------------------

Comment By: Pavol Rusnak (prusnak)
Date: 2009-10-19 15:20

Message:
source code file icewm-1.2.38pre1/src/icehelp.cc
function parse

I notice the following code

                buf = (char *)realloc(buf, ++len);

but I fail to notice a matching call to free in the following code

                    if (parent) {
                        close = type;
                        //puts("</PARSE>");
                        return f;
                    }

Suggest new code

                    if (parent) {
                        close = type;
                        //puts("</PARSE>");
                        free( buf);
                        return f;
                    }

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=300031&aid=2880989&group_id=31

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Icewm-devel mailing list
Icewm-devel@...
https://lists.sourceforge.net/lists/listinfo/icewm-devel