r18587: fixed a potential memory leak in libnet
authorAndrew Tridgell <tridge@samba.org>
Sat, 16 Sep 2006 17:59:33 +0000 (17:59 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:18:52 +0000 (14:18 -0500)
(This used to be commit 935f6f34cfbec0cba6df246b7ef9fdfd604aad38)

source4/libnet/libnet.c

index 6626e94b6f0e8be5511345ebc314116096ebc944..2d55905b372d3db02486e1ad93263d52eedd3617 100644 (file)
@@ -27,7 +27,7 @@ struct libnet_context *libnet_context_init(struct event_context *ev)
        struct libnet_context *ctx;
 
        /* create brand new libnet context */ 
-       ctx = talloc(NULL, struct libnet_context);
+       ctx = talloc(ev, struct libnet_context);
        if (!ctx) {
                return NULL;
        }