client: fix free of wrong pointer
authorHong Zhiguo <zhiguohong@tencent.com>
Wed, 16 Oct 2013 14:35:12 +0000 (08:35 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 16 Oct 2013 14:35:12 +0000 (08:35 -0600)
Signed-off-by: Hong Zhiguo <zhiguohong@tencent.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
client.c

index b20d6dc..1fefda8 100644 (file)
--- 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;
        }