From f2aa5435e96ae00706e286c5928e85d92360ae6a Mon Sep 17 00:00:00 2001 From: Changpeng Liu Date: Wed, 29 Dec 2021 20:16:45 +0800 Subject: [PATCH] examples/vmd: add missed spdk_env_fini() call when exiting Change-Id: If80008cac2a291786984ba3ea06196ef7310271e Signed-off-by: Changpeng Liu Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10909 Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto Reviewed-by: Aleksey Marchuk --- examples/vmd/led/led.c | 2 ++ examples/vmd/lsvmd/lsvmd.c | 1 + 2 files changed, 3 insertions(+) diff --git a/examples/vmd/led/led.c b/examples/vmd/led/led.c index 40ea52036f..ca9bfea81f 100644 --- a/examples/vmd/led/led.c +++ b/examples/vmd/led/led.c @@ -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; } diff --git a/examples/vmd/lsvmd/lsvmd.c b/examples/vmd/lsvmd/lsvmd.c index 45b815b6ee..9d36a3442d 100644 --- a/examples/vmd/lsvmd/lsvmd.c +++ b/examples/vmd/lsvmd/lsvmd.c @@ -110,5 +110,6 @@ int main(int argc, char **argv) spdk_vmd_fini(); + spdk_env_fini(); return rc; }