public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/25757] New: Small memory leak in 'prefix_from_string' of file 'collect2.c'
@ 2006-01-12 0:14 christophe dot jaillet at wanadoo dot fr
2006-01-22 15:35 ` [Bug other/25757] " christophe dot jaillet at wanadoo dot fr
2008-06-16 19:51 ` christophe dot jaillet at wanadoo dot fr
0 siblings, 2 replies; 3+ messages in thread
From: christophe dot jaillet at wanadoo dot fr @ 2006-01-12 0:14 UTC (permalink / raw)
To: gcc-bugs
In function 'prefix_from_string' of file 'collect2.c', a variable 'nstore' is
xmalloc'ed.
This variable is passed to 'add_prefix' where it is xstrdup'ed.
But the variable nstore itself seems to never be free'ed.
So, I think that a 'free(nstore)' should be added at the end of the function.
CJ
--
Summary: Small memory leak in 'prefix_from_string' of file
'collect2.c'
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: christophe dot jaillet at wanadoo dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25757
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug other/25757] Small memory leak in 'prefix_from_string' of file 'collect2.c'
2006-01-12 0:14 [Bug other/25757] New: Small memory leak in 'prefix_from_string' of file 'collect2.c' christophe dot jaillet at wanadoo dot fr
@ 2006-01-22 15:35 ` christophe dot jaillet at wanadoo dot fr
2008-06-16 19:51 ` christophe dot jaillet at wanadoo dot fr
1 sibling, 0 replies; 3+ messages in thread
From: christophe dot jaillet at wanadoo dot fr @ 2006-01-22 15:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from christophe dot jaillet at wanadoo dot fr 2006-01-22 15:35 -------
Created an attachment (id=10704)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10704&action=view)
patch to correct the memory leak
Correct the memory leak describded.
Bootstrapped against i686-pc-cygwin OK.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25757
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug other/25757] Small memory leak in 'prefix_from_string' of file 'collect2.c'
2006-01-12 0:14 [Bug other/25757] New: Small memory leak in 'prefix_from_string' of file 'collect2.c' christophe dot jaillet at wanadoo dot fr
2006-01-22 15:35 ` [Bug other/25757] " christophe dot jaillet at wanadoo dot fr
@ 2008-06-16 19:51 ` christophe dot jaillet at wanadoo dot fr
1 sibling, 0 replies; 3+ messages in thread
From: christophe dot jaillet at wanadoo dot fr @ 2008-06-16 19:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from christophe dot jaillet at wanadoo dot fr 2008-06-16 19:50 -------
This has been fixed in revision 124532 on Sun Jul 15 11:45:30 2007 UTC.
(http://gcc.gnu.org/viewcvs/trunk/gcc/collect2.c?r1=124532&r2=126653&diff_format=h)
--
christophe dot jaillet at wanadoo dot fr changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25757
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-16 19:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-12 0:14 [Bug other/25757] New: Small memory leak in 'prefix_from_string' of file 'collect2.c' christophe dot jaillet at wanadoo dot fr
2006-01-22 15:35 ` [Bug other/25757] " christophe dot jaillet at wanadoo dot fr
2008-06-16 19:51 ` christophe dot jaillet at wanadoo dot fr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).