Commit 95408c55 authored by Boris Glimcher's avatar Boris Glimcher Committed by Tomasz Zawadzki
Browse files

ut/nvme: fixing dangling-pointer found by valgrind

Fixes: #3723

See https://review.spdk.io/c/spdk/spdk/+/26354



This was discussed in the comunity call and ideally
we would like to refactor this UT code to remove all
locations where global pointer points to local buffer.

We decided to merge this patch as-is first.

Change-Id: I84d6f7acc52d447967dbac84061111a37dfca68d
Signed-off-by: default avatarBoris Glimcher <Boris.Glimcher@emc.com>
Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26525


Tested-by: default avatarSPDK Automated Test System <spdkbot@gmail.com>
Reviewed-by: default avatarJacek Kalwas <jacek.kalwas@nutanix.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarChangpeng Liu <changpeliu@tencent.com>
Reviewed-by: default avatarJim Harris <jim.harris@nvidia.com>
parent e4f5468d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2264,6 +2264,7 @@ test_nvme_ctrlr_test_active_ns(void)

		nvme_ctrlr_destruct(&ctrlr);
	}
	g_active_ns_list = NULL;
}

static void