1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-20 08:23:50 +03:00

r18587: fixed a potential memory leak in libnet

This commit is contained in:
Andrew Tridgell
2006-09-16 17:59:33 +00:00
committed by Gerald (Jerry) Carter
parent 6d53f2f5bc
commit 935f6f34cf

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