nvme/perf: remove trid_entry from TAILQ before freeing it

Fixes #246.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I0fd4f9922acad507180fef396ebbb5c2304f2dff

Reviewed-on: https://review.gerrithub.io/436994
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Jim Harris 2018-12-12 09:07:33 -07:00
parent 4c30f7fc78
commit 1589653b5d

View File

@ -1179,6 +1179,7 @@ unregister_trids(void)
struct trid_entry *trid_entry, *tmp;
TAILQ_FOREACH_SAFE(trid_entry, &g_trid_list, tailq, tmp) {
TAILQ_REMOVE(&g_trid_list, trid_entry, tailq);
free(trid_entry);
}
}