Commit 58701cc4 authored by Changpeng Liu's avatar Changpeng Liu Committed by Jim Harris
Browse files

app: add missed spdk_env_fini() call when exiting



Change-Id: I5cedf3754b512960808168dc50e36ab55f0c7c7e
Signed-off-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10910


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
parent 9ec9c8b3
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ print_pci_dev(void *ctx, struct spdk_pci_device *dev)
int
main(int argc, char **argv)
{
	int op;
	int op, rc = 0;
	struct spdk_env_opts opts;

	while ((op = getopt(argc, argv, "h")) != -1) {
@@ -102,13 +102,16 @@ main(int argc, char **argv)

	if (spdk_pci_enumerate(spdk_pci_nvme_get_driver(), pci_enum_cb, NULL)) {
		printf("Unable to enumerate PCI nvme driver\n");
		return 1;
		rc = 1;
		goto exit;
	}

	printf("\nList of available PCI devices:\n");
	spdk_pci_for_each_device(NULL, print_pci_dev);

exit:
	spdk_vmd_fini();
	spdk_env_fini();

	return 0;
	return rc;
}