Spdk/test/unit/lib/bdev/crypto.c
paul luse 8d31df3061 bdev/crypto: fix error path memory leak in driver init
This patch refactors driver init and in doing so eliminates the mem
leak described in the GitHub issue.  Also it is now consistent with
how the pending compression driver does init.

Fixes #633

Change-Id: Ia2d55d9e98fb9470ff8f9b34aeb4ee9f3d0478f5
Signed-off-by: paul luse <paul.e.luse@intel.com>
Reviewed-on: https://review.gerrithub.io/c/442896 (master)
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/447607
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
2019-03-12 05:12:18 +00:00
..
.gitignore bdev: Add crypto virtual bdev module 2018-09-17 21:23:14 +00:00
crypto_ut.c bdev/crypto: fix error path memory leak in driver init 2019-03-12 05:12:18 +00:00
Makefile build: remove duplicate spdk.app.mk includes 2018-12-11 18:07:53 +00:00
rte_crypto.h bdev: Add crypto virtual bdev module 2018-09-17 21:23:14 +00:00
rte_cryptodev.h ut/crypto: update mocked headers for dpdk 18.08 2018-10-22 18:01:45 +00:00
rte_mbuf.h bdev: Add crypto virtual bdev module 2018-09-17 21:23:14 +00:00
rte_mempool.h bdev: Add crypto virtual bdev module 2018-09-17 21:23:14 +00:00