From: "Wei, Jiangang" <weijg.fnst@cn.fujitsu.com>
To: "alexey.kodanev@oracle.com" <alexey.kodanev@oracle.com>
Cc: "ltp-list@lists.sourceforge.net" <ltp-list@lists.sourceforge.net>
Subject: Re: [LTP] [PATCH] sem_conpro: fix memory leak
Date: Wed, 24 Jun 2015 03:37:26 +0000 [thread overview]
Message-ID: <1435117038.1794.1.camel@localhost> (raw)
In-Reply-To: <55892FA3.80800@oracle.com>
On Tue, 2015-06-23 at 13:06 +0300, Alexey Kodanev wrote:
> 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 for your reminder.
I will update my patch.
Regard,
wei
>
> 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
next prev parent reply other threads:[~2015-06-24 3:37 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
2015-06-24 3:37 ` Wei, Jiangang [this message]
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=1435117038.1794.1.camel@localhost \
--to=weijg.fnst@cn.fujitsu.com \
--cc=alexey.kodanev@oracle.com \
--cc=ltp-list@lists.sourceforge.net \
/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