From 2f091d9bacd5d771d468678ccce2ea7f49beba7a Mon Sep 17 00:00:00 2001 From: Martin George Date: Fri, 2 Aug 2024 00:37:12 +0530 Subject: [PATCH] fabrics: avoid potential segfault in nvmf_dim() Eliminate the call to nvme_free_tree() in nvmf_dim() since the cleanup helper is already available here. Signed-off-by: Martin George --- fabrics.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fabrics.c b/fabrics.c index 438604ac..db1b7cb0 100644 --- a/fabrics.c +++ b/fabrics.c @@ -1455,7 +1455,6 @@ int nvmf_dim(const char *desc, int argc, char **argv) fprintf(stderr, "Did not find device %s: %s\n", p, nvme_strerror(errno)); - nvme_free_tree(r); return -errno; } dim_operation(c, tas, p); -- 2.51.0