From: Andreas Schneider Date: Tue, 24 Oct 2023 10:04:19 +0000 (+0200) Subject: s3:utils: Call gfree_all() before exit in smbtree X-Git-Tag: talloc-2.4.2~1106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d411cf5cecd4e584f500335310164ed22c199d7;p=thirdparty%2Fsamba.git s3:utils: Call gfree_all() before exit in smbtree Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source3/utils/smbtree.c b/source3/utils/smbtree.c index 4719640033a..80dfa0a5944 100644 --- a/source3/utils/smbtree.c +++ b/source3/utils/smbtree.c @@ -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 . */ @@ -288,6 +288,7 @@ fail: smbc_free_context(ctx, 0); ctx = NULL; } + gfree_all(); poptFreeContext(pc); TALLOC_FREE(frame); return result;