summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-16 17:59:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:52 -0500
commite13715774c6a656b6f7952a5ae11c49390089b31 (patch)
treee23f432acb6e7bcb3f91461845bd8299d6449b47
parent3d6cdc9e97d13052c3e15d72a6e550e9c10319a1 (diff)
downloadsamba-e13715774c6a656b6f7952a5ae11c49390089b31.tar.gz
samba-e13715774c6a656b6f7952a5ae11c49390089b31.tar.bz2
samba-e13715774c6a656b6f7952a5ae11c49390089b31.zip
r18587: fixed a potential memory leak in libnet
(This used to be commit 935f6f34cfbec0cba6df246b7ef9fdfd604aad38)
-rw-r--r--source4/libnet/libnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libnet/libnet.c b/source4/libnet/libnet.c
index 6626e94b6f..2d55905b37 100644
--- a/source4/libnet/libnet.c
+++ b/source4/libnet/libnet.c
@@ -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;
}