s3:vfs fix children cleanup in aio_fork
[obnox/samba-ctdb.git] / source3 / modules / vfs_aio_fork.c
index 42a0526371566b9fb3fad568b2cb88352bd3793a..8ee660d7b8a6af0de16add6cd8cba6eeafccf01d 100644 (file)
@@ -245,6 +245,7 @@ static void aio_child_cleanup(struct event_context *event_ctx,
                           "deleting\n", (int)child->pid));
 
                TALLOC_FREE(child);
+               child = next;
        }
 
        if (list->children != NULL) {