1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

s3:utils: Call gfree_all() before exit in smbtree

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andreas Schneider 2023-10-24 12:04:19 +02:00 committed by Andrew Bartlett
parent 643e0ae876
commit 4d411cf5ce

View 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;