s4:registry:regdiff: use existing talloc context for the event context
[mat/samba.git] / source4 / lib / registry / tools / regdiff.c
index 08c88a62edf40dfabe6bcc3e2b01e38b542b7834..cf65de30642e7ba5d6bc68a004691114ddac6516 100644 (file)
@@ -119,7 +119,7 @@ int main(int argc, const char **argv)
 
        }
 
-       ev_ctx = s4_event_context_init(NULL);
+       ev_ctx = s4_event_context_init(ctx);
 
        h1 = open_backend(ctx, pc, ev_ctx, cmdline_lp_ctx, backend1, remote1);
        if (h1 == NULL)