Fix fifo leak
[fio.git] / blktrace.c
index fc98091868566531b6cc2a3069d5d5c38c79a20b..698d16ff11949482d1099283db5a06b7cc2bde67 100644 (file)
@@ -227,6 +227,7 @@ int load_blktrace(struct thread_data *td, const char *filename)
                cpu = t.cpu;
        } while (1);
 
+       fifo_free(fifo);
        close(fd);
 
        if (!ios[DDIR_READ] && !ios[DDIR_WRITE]) {
@@ -253,5 +254,6 @@ int load_blktrace(struct thread_data *td, const char *filename)
        return 0;
 err:
        close(fd);
+       fifo_free(fifo);
        return 1;
 }