s3:utils: Call gfree_all() before exit in net
authorAndreas Schneider <asn@samba.org>
Tue, 24 Oct 2023 09:57:14 +0000 (11:57 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 25 Oct 2023 22:23:37 +0000 (22:23 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/utils/net.c

index 3106463a2a14dc01625118641e857c022bd1c627..72878f4280d97a5b9878c1631475abd7f23b9691 100644 (file)
@@ -1378,6 +1378,9 @@ static struct functable net_func[] = {
        poptFreeContext(pc);
 
        cmdline_messaging_context_free();
+
+       gfree_all();
+
        TALLOC_FREE(frame);
        return rc;
 }