summaryrefslogtreecommitdiff
path: root/source4/lib/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/events.c')
-rw-r--r--source4/lib/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/events.c b/source4/lib/events.c
index 0ca6b66598..9f28100a26 100644
--- a/source4/lib/events.c
+++ b/source4/lib/events.c
@@ -85,7 +85,7 @@ struct event_context *event_context_init(TALLOC_CTX *mem_ctx)
/* start off with no events */
ZERO_STRUCTP(ev);
- ev->events = talloc(ev, 0);
+ ev->events = talloc_new(ev);
return ev;
}