|
From: anna e. <kan...@gm...> - 2006-11-06 12:18:25
|
hi all,
i have c program which do endless loop n and print menu
and act according to the menu selection
one of the selections execute
int mt_vg_test1(estream_t *e)
{
char *buf;
buf=malloc(6);
estream_printf(e, "VG Test1 [[-s] Alocated address at: %p\n",buf);
return 0;
}
which doesnt free the memory allocated
to force valgrind to print the msg i use
VALGRIND_DO_LEAK_CHECK
and its give me the msg
==7== 6 bytes in 1 blocks are definitely lost in loss record 2 of 54
==7== at 0x40164D1: _vgrZU_libcZdsoZa_malloc (vg_replace_malloc.c:149)
==7== by 0x8063E82: mt_vg_test1 (main_commands.c:905)
when i use again VALGRIND_DO_LEAK_CHECK
it print the msg again.
how can i erase the olf valgrind msgs
thanks alot
itamar elem
|