From 035685930ab526ef1de45e9c7bac2618747b83c1 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Mon, 28 Mar 2022 13:42:44 +0200 Subject: [PATCH] fabrics: Free non-matching controller during discovery Release all resources for the non-matching controller. Signed-off-by: Daniel Wagner --- fabrics.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fabrics.c b/fabrics.c index 7b6c2272..4224220d 100644 --- a/fabrics.c +++ b/fabrics.c @@ -524,6 +524,7 @@ int nvmf_discover(const char *desc, int argc, char **argv, bool connect) "ignoring ctrl device %s, " "command-line options do not match\n", device); + nvme_free_ctrl(c); c = NULL; persistent = false; } else { -- 2.50.1