public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Alexey Kodanev <alexey.kodanev@oracle.com>
To: "Wei, Jiangang" <weijg.fnst@cn.fujitsu.com>,
	ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] sem_conpro: fix memory leak
Date: Tue, 23 Jun 2015 13:06:27 +0300	[thread overview]
Message-ID: <55892FA3.80800@oracle.com> (raw)
In-Reply-To: <1435021379-2945-1-git-send-email-weijg.fnst@cn.fujitsu.com>

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.fnst@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	other threads:[~2015-06-23 10:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-23  1:02 [LTP] [PATCH] sem_conpro: fix memory leak Wei,Jiangang
2015-06-23 10:06 ` Alexey Kodanev [this message]
2015-06-24  3:37   ` Wei, Jiangang
2015-06-24  3:41   ` [LTP] [PATCH v2] sem_conpro: cleanup code Wei,Jiangang
2015-06-25 13:46     ` Alexey Kodanev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55892FA3.80800@oracle.com \
    --to=alexey.kodanev@oracle.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=weijg.fnst@cn.fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox