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:
committed by
Gerald (Jerry) Carter
parent
6d53f2f5bc
commit
935f6f34cf
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user