Hi!
On 06/23/2015 04:02 AM, Wei,Jiangang wrote:
> * If _POSIX_SEMAPHORES is not defined,
>    It's no need to allocate buffer.
>    so, allocate buffer after checking it.
>
> * free the memory at the end of main().
>
> Signed-off-by: Wei,Jiangang <weijg.f...@cn.fujitsu.com>
> ---
>   testcases/open_posix_testsuite/functional/semaphores/sem_conpro.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)

Please look at "[LTP] [PATCH]: Fix memory leak by freeing buf" thread.

Thanks,
Alexey


------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to