]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:utils: Call gfree_all() before exit in smbtree
authorAndreas Schneider <asn@samba.org>
Tue, 24 Oct 2023 10:04:19 +0000 (12:04 +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/smbtree.c

index 4719640033a7e07ed3d4761f83f2b6cf45bdf4ce..80dfa0a5944b7df9ca61741f15994c8d07d16052 100644 (file)
@@ -1,20 +1,20 @@
-/* 
+/*
    Unix SMB/CIFS implementation.
    Network neighbourhood browser.
-   
+
    Copyright (C) Tim Potter      2000
    Copyright (C) Jelmer Vernooij 2003
-   
+
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
-   
+
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
-   
+
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -288,6 +288,7 @@ fail:
                smbc_free_context(ctx, 0);
                ctx = NULL;
        }
+       gfree_all();
        poptFreeContext(pc);
        TALLOC_FREE(frame);
        return result;