]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
Fix the memory leak for nvme discover command
authorWu Bo <wubo.linux@gmail.com>
Tue, 31 Aug 2021 02:36:57 +0000 (10:36 +0800)
committerKeith Busch <kbusch@kernel.org>
Tue, 31 Aug 2021 03:36:51 +0000 (21:36 -0600)
fabrics.c

index fb55e331a9a5446f6ba560552613c2aaae80ac15..b13254683e1495c4b5f4daffac3a6226c251abf3 100644 (file)
--- a/fabrics.c
+++ b/fabrics.c
@@ -520,6 +520,7 @@ out_free:
                free(hnqn);
        if (hid)
                free(hid);
+       nvme_free_tree(r);
 
        return ret;
 }