gclient: don't free pdu on iolog return
authorJens Axboe <axboe@fb.com>
Wed, 16 Dec 2015 22:05:54 +0000 (15:05 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 16 Dec 2015 22:05:54 +0000 (15:05 -0700)
The command is freed separately, don't free it twice.

Signed-off-by: Jens Axboe <axboe@fb.com>
gclient.c

index 17af38ab381499b74193d018fa0921f83d0cd631..949ad42abc87c7e01f8f7bb7b03a04a8d77f64b6 100644 (file)
--- a/gclient.c
+++ b/gclient.c
@@ -696,7 +696,6 @@ static void gfio_client_job_start(struct fio_client *client, struct fio_net_cmd
 static void gfio_client_iolog(struct fio_client *client, struct cmd_iolog_pdu *pdu)
 {
        printf("got iolog: name=%s, type=%u, entries=%lu\n", pdu->name, pdu->log_type, (unsigned long) pdu->nr_samples);
-       free(pdu);
 }
 
 static void gfio_add_total_depths_tree(GtkListStore *model,