s4: process_standard: Always free tevent_context before exit().
authorJeremy Allison <jra@samba.org>
Fri, 7 Apr 2017 22:10:09 +0000 (15:10 -0700)
committerRalph Boehme <slow@samba.org>
Sat, 8 Apr 2017 10:30:08 +0000 (12:30 +0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/smbd/process_standard.c

index f786d4dcc229c5430b3dae2c4696fd87f04843dc..766b99617d01f0810fef938ff8ca29882a1519d3 100644 (file)
@@ -65,6 +65,7 @@ static void standard_pipe_handler(struct tevent_context *event_ctx, struct teven
                                  uint16_t flags, void *private_data)
 {
        DEBUG(10,("Child %d exiting\n", (int)getpid()));
+       talloc_free(event_ctx);
        exit(0);
 }