fixed a potential memory leak in libnet
[samba-svnmirror.git] / source / 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;
        }