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:
parent
979f1c5ea1
commit
9f779f130f
@ -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]);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user