Flexible I/O Tester development
 help / color / mirror / Atom feed
* [PATCH] client.c: fix free of wrong pointer
@ 2013-10-16  9:37 Hong Zhiguo
  2013-10-16 14:35 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Hong Zhiguo @ 2013-10-16  9:37 UTC (permalink / raw)
  To: fio; +Cc: axboe, Hong Zhiguo

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;
 	}
 
-- 
1.8.1.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] client.c: fix free of wrong pointer
  2013-10-16  9:37 [PATCH] client.c: fix free of wrong pointer Hong Zhiguo
@ 2013-10-16 14:35 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2013-10-16 14:35 UTC (permalink / raw)
  To: Hong Zhiguo, fio; +Cc: Hong Zhiguo

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-16 14:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-16  9:37 [PATCH] client.c: fix free of wrong pointer Hong Zhiguo
2013-10-16 14:35 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox