1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

ctdb-freeze: simplify code with TALLOC_FREE

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Amitay Isaacs 2014-08-28 16:59:52 +10:00 committed by Amitay Isaacs
parent 979f1c5ea1
commit 9f779f130f

View File

@ -581,10 +581,7 @@ static void thaw_priority(struct ctdb_context *ctdb, uint32_t priority)
}
ctdb_db_prio_iterator(ctdb, priority, db_thaw, NULL);
if (ctdb->freeze_handles[priority] != NULL) {
talloc_free(ctdb->freeze_handles[priority]);
ctdb->freeze_handles[priority] = NULL;
}
TALLOC_FREE(ctdb->freeze_handles[priority]);
}
/*