s4: nmblookup: Allocate event context off NULL instead of talloc_autofree_context().
authorJeremy Allison <jra@samba.org>
Thu, 11 May 2017 23:15:56 +0000 (16:15 -0700)
committerRalph Boehme <slow@samba.org>
Sat, 13 May 2017 19:01:25 +0000 (21:01 +0200)
It's already correctly freed on exit.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Sat May 13 21:01:25 CEST 2017 on sn-devel-144

libcli/nbt/tools/nmblookup.c

index afb81c745cd1cd51f9e036a0f35a558161c8412a..e5fa57366e6e052a766a4af26b86492f32060ff2 100644 (file)
@@ -372,7 +372,7 @@ int main(int argc, const char *argv[])
 
        load_interface_list(NULL, cmdline_lp_ctx, &ifaces);
 
-       ev = s4_event_context_init(talloc_autofree_context());
+       ev = s4_event_context_init(NULL);
 
        while (poptPeekArg(pc)) {
                const char *name = poptGetArg(pc);