Re: [Valgrind-users] Valgrind with linux daemon

2015-03-03 Thread Philippe Waroquiers
On Tue, 2015-03-03 at 04:59 +, sankoor sampath wrote: > Hi, > > Am very new valgrind, pl help me out: > I have daemon running on linux machine, in which i have injected 1MB > memory leak & trying to find memory leak in a daemon using valgrind. > But am not able to get the proper memory leak ou

Re: [Valgrind-users] Valgrind with linux daemon

2015-03-02 Thread John Reiser
> Memory leak introduced as :char* skg = (char*)malloc (1*sizeof(char)); Write the smallest possible program that contains the above statement but also causes memcheck to report a leak. You must run the program under memcheck and get an actual leak report. Thinking "it's so easy, that defini

[Valgrind-users] Valgrind with linux daemon

2015-03-02 Thread sankoor sampath
Hi, Am very new valgrind, pl help me out: I have daemon running on linux machine, in which i have injected 1MB memory leak & trying to find memory leak in a daemon using valgrind. But am not able to get the proper memory leak ouptut , Pl find the below the valgrind o/p: /usr/bin/valgrind --tool=