git.samba.org
/
samba-svnmirror.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed a potential memory leak in libnet
[samba-svnmirror.git]
/
source
/
libnet
/
libnet.c
diff --git
a/source/libnet/libnet.c
b/source/libnet/libnet.c
index 6626e94b6f0e8be5511345ebc314116096ebc944..2d55905b372d3db02486e1ad93263d52eedd3617 100644
(file)
--- a/
source/libnet/libnet.c
+++ b/
source/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;
}