summaryrefslogtreecommitdiff
path: root/source3/utils/smbtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils/smbtree.c')
-rw-r--r--source3/utils/smbtree.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/utils/smbtree.c b/source3/utils/smbtree.c
index b30ce08c5a..a29aa52fef 100644
--- a/source3/utils/smbtree.c
+++ b/source3/utils/smbtree.c
@@ -249,6 +249,7 @@ static BOOL print_tree(struct user_auth_info *user_info)
****************************************************************************/
int main(int argc,char *argv[])
{
+ TALLOC_CTX *frame = talloc_stackframe();
struct poptOption long_options[] = {
POPT_AUTOHELP
{ "broadcast", 'b', POPT_ARG_VAL, &use_bcast, True, "Use broadcast instead of using the master browser" },
@@ -289,8 +290,11 @@ static BOOL print_tree(struct user_auth_info *user_info)
/* Now do our stuff */
- if (!print_tree(&cmdline_auth_info))
+ if (!print_tree(&cmdline_auth_info)) {
+ TALLOC_FREE(frame);
return 1;
+ }
+ TALLOC_FREE(frame);
return 0;
}