examples/vmd: add missed spdk_env_fini() call when exiting
Change-Id: If80008cac2a291786984ba3ea06196ef7310271e Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10909 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
abcc84acd8
commit
f2aa5435e9
@ -209,6 +209,7 @@ main(int argc, char **argv)
|
||||
rc = spdk_vmd_init();
|
||||
if (rc) {
|
||||
fprintf(stderr, "Unable to initialize VMD subsystem\n");
|
||||
spdk_env_fini();
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -216,5 +217,6 @@ main(int argc, char **argv)
|
||||
|
||||
spdk_vmd_fini();
|
||||
|
||||
spdk_env_fini();
|
||||
return g_status;
|
||||
}
|
||||
|
@ -110,5 +110,6 @@ int main(int argc, char **argv)
|
||||
|
||||
spdk_vmd_fini();
|
||||
|
||||
spdk_env_fini();
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user