summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwan Velu <erwan@redhat.com>2017-10-03 11:19:57 +0200
committerJens Axboe <axboe@kernel.dk>2017-10-03 09:06:33 -0600
commit6541f4e003fb88567289de929bb4ce0a5d4744bc (patch)
tree6e80feedfe25fa583a84998717c55682aa6c4ca2
parent05d9d86e06f8944f3b5c494058f4844619f7d650 (diff)
backend: Removing memory leak in run_threads()
The fd structure must be freed before breaking the foreach() unless it leaks its memory This patch add a free() call in the last break statement. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--backend.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend.c b/backend.c
index 029d005..b1995ef 100644
--- a/backend.c
+++ b/backend.c
@@ -2346,6 +2346,7 @@ reap:
fio_terminate_threads(TERMINATE_ALL);
fio_abort = 1;
nr_started--;
+ free(fd);
break;
}
dprint(FD_MUTEX, "done waiting on startup_mutex\n");