From 8a86ac72088ad9f64ca83218c704f84c9abe00b6 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Tue, 13 Sep 2011 18:47:18 +1000 Subject: [PATCH] ReadOnly: revokechild_active is a list, not a context. Dont reset the pointer to NULL after deleting the first entry, loop deleting one entry at a time until they are all gone or we will leak some memory and possibly a process. --- server/ctdb_recover.c | 1 - 1 file changed, 1 deletion(-) diff --git a/server/ctdb_recover.c b/server/ctdb_recover.c index 5d98c448..3d56f77d 100644 --- a/server/ctdb_recover.c +++ b/server/ctdb_recover.c @@ -506,7 +506,6 @@ int32_t ctdb_control_push_db(struct ctdb_context *ctdb, TDB_DATA indata) } while (ctdb_db->revokechild_active != NULL) { talloc_free(ctdb_db->revokechild_active); - ctdb_db->revokechild_active = NULL; } } -- 2.34.1