Flexible I/O Tester development
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Hong Zhiguo <honkiko@gmail.com>, fio@vger.kernel.org
Cc: Hong Zhiguo <zhiguohong@tencent.com>
Subject: Re: [PATCH] client.c: fix free of wrong pointer
Date: Wed, 16 Oct 2013 08:35:38 -0600	[thread overview]
Message-ID: <525EA43A.6010004@kernel.dk> (raw)
In-Reply-To: <1381916247-9947-1-git-send-email-zhiguohong@tencent.com>

On 10/16/2013 03:37 AM, Hong Zhiguo wrote:
> Signed-off-by: Hong Zhiguo <zhiguohong@tencent.com>
> ---
>  client.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/client.c b/client.c
> index b20d6dc..1fefda8 100644
> --- a/client.c
> +++ b/client.c
> @@ -625,7 +625,7 @@ static int __fio_client_send_ini(struct fio_client *client, const char *filename
>  	if (len) {
>  		log_err("fio: failed reading job file %s\n", filename);
>  		close(fd);
> -		free(buf);
> +		free(pdu);
>  		return 1;
>  	}

Thanks, applied!

-- 
Jens Axboe


      reply	other threads:[~2013-10-16 14:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-16  9:37 [PATCH] client.c: fix free of wrong pointer Hong Zhiguo
2013-10-16 14:35 ` Jens Axboe [this message]

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=525EA43A.6010004@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=fio@vger.kernel.org \
    --cc=honkiko@gmail.com \
    --cc=zhiguohong@tencent.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