fio_plugin: fix io completion queue leak in nvme plugin

fio_thread->iocq allocated on line 403 was leaked when
fio finished its run.

Change-Id: I740dcaa1e0037283d099ddf4bc125cec57cfdbcc
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/456623
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Tomasz Zawadzki 2019-06-03 08:47:50 -04:00 committed by Darek Stojaczyk
parent 3b9db6c403
commit 37b5912545

View File

@ -907,6 +907,7 @@ static void spdk_fio_cleanup(struct thread_data *td)
fio_qpair = fio_qpair_tmp;
}
free(fio_thread->iocq);
free(fio_thread);
pthread_mutex_lock(&g_mutex);