blktrace: fix leak of 'merge_buf'
authorJens Axboe <axboe@kernel.dk>
Thu, 20 Sep 2018 20:25:56 +0000 (14:25 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Sep 2018 20:25:56 +0000 (14:25 -0600)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
blktrace.c

index 1d33c6a..772a0c7 100644 (file)
@@ -818,6 +818,7 @@ err_file:
 err_out_file:
        fflush(merge_fp);
        fclose(merge_fp);
+       free(merge_buf);
 err_param:
        free(bcs);