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 b20d6dc288f5ebd5863419ff8f114ca0fbe84c56..1fefda852d1c661d4ca06b9fc4a70236987aaf83 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;
        }