lists.zerezo.com
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
***BOGO*** [Mingw-users] question about mpatrol
- Date: Sat, 4 Oct 2008 09:59:50 +0200 (CEST)
- From: Vincent Torri <vtorri@xxxxxxxxxxxx>
- Subject: ***BOGO*** [Mingw-users] question about mpatrol
Hey,
I'm using mpatrol to check a bit the leaks in a lib.
First, i would like to mention that when I use mpatrol installer on SF,
the installed mpatrol does not work. I have to compile it from source. I
think that the installer should be removed, or updated.
Now, I have a question about leaks. I installed mpatrol in /usr/local.
Test program:
#include <stdlib.h>
int
main(int argc, char *argv[])
{
char *p;
p = (char *)malloc(16);
return EXIT_SUCCESS;
}
I allocate some memory but I do not free it.
I compile the program with:
gcc -g -Wall -include /local/include/mpatrol.h -o leak leak.c -L/local/lib -lmpatrol -lbfd -liberty -limagehlp
I execute mpatrol:
MPATROL_OPTIONS=LOGALL mpatrol ./leak.exe
when I look at the log file, there is no mention of memory that is not
freed. I tried other options of mpatrol : LEAKTABLE, PROF, SHOWUNFREED,
without more success.
So is it normal that, in that case, mpatrol does not report a memory leak
?
thank you
Vincent Torri
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users