Commit c8e034b0 authored by paul luse's avatar paul luse Committed by Jim Harris
Browse files

ut/compress: fix compress UT



Remove code that was freeing memory in the code under test. It was
no longer needed following a refactor of the init code and was
causing a double free.

Change-Id: I99018587ac12e01d4fe950e0718c23790ce7ce41
Signed-off-by: default avatarpaul luse <paul.e.luse@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/465966


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent 68e7da44
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -736,8 +736,6 @@ test_initdrivers(void)
{
	int rc;
	static struct rte_mempool *orig_mbuf_mp;
	struct comp_device_qp *dev_qp;
	struct comp_device_qp *tmp_qp;

	orig_mbuf_mp = g_mbuf_mp;
	g_mbuf_mp = NULL;
@@ -820,12 +818,6 @@ test_initdrivers(void)
	rc = vbdev_init_compress_drivers();
	CU_ASSERT(rc == 0);

	TAILQ_FOREACH_SAFE(dev_qp, &g_comp_device_qp, link, tmp_qp) {
		TAILQ_REMOVE(&g_comp_device_qp, dev_qp, link);
		free(dev_qp->device);
		free(dev_qp);
	}

	g_mbuf_mp = orig_mbuf_mp;
}