|
From: Jan S. <jst...@re...> - 2013-03-18 13:12:02
|
----- Original Message ----- > From: ch...@su... > To: "Markos Chandras" <mar...@gm...> > Cc: ltp...@li... > Sent: Monday, 18 March, 2013 1:15:09 PM > Subject: Re: [LTP] [PATCH v4] syscalls/getdents: Add parameter to test getdents64 syscall > > Hi! > > + if (longsyscall) > > + free(dirp64); > > + else > > + free(dirp); > > + > > cleanup(); > > > > tst_exit(); > > You don't need to bother to free the buffers when the next thing the > test does is exit, the whole heap along with malloc data structures > will > be freed (unmapped) by the kernel anyway. I think it's nice thing to cleanup. Say, if test corrupted heap, free could alert you. Also there are tools, which may complain, that there's a leak now. I think LTP supports at least valgrind. Regards, Jan > > -- > Cyril Hrubis > ch...@su... > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Ltp-list mailing list > Ltp...@li... > https://lists.sourceforge.net/lists/listinfo/ltp-list > |