[Bug malloc/14981] New: mtrace realloc
joost.vandevondele at mat dot ethz.ch
sourceware-bugzilla@sourceware.org
Sat Dec 22 15:02:00 GMT 2012
http://sourceware.org/bugzilla/show_bug.cgi?id=14981
Bug #: 14981
Summary: mtrace realloc
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: malloc
AssignedTo: unassigned@sourceware.org
ReportedBy: joost.vandevondele@mat.ethz.ch
Classification: Unclassified
The following program causes mtrace.pl to report memory leaks.
> cat test.c
void main()
{
int* i;
mtrace();
i=malloc(sizeof(int));
i=realloc(i,0);
muntrace();
}
mtrace ./t.dat
Memory not freed:
-----------------
Address Size Caller
0x0000000000a96460 0x4 at 0x400678
It looks like mtrace.pl is not considering realloc(x,0) equivalent to a free.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list