From: Martin George Date: Thu, 1 Aug 2024 19:07:12 +0000 (+0530) Subject: fabrics: avoid potential segfault in nvmf_dim() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2f091d9bacd5d771d468678ccce2ea7f49beba7a;p=users%2Fsagi%2Fnvme-cli.git 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 --- 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);