diff options
author | Martin Schwenke <martin@meltin.net> | 2015-03-31 13:59:02 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2015-05-10 03:22:13 +0200 |
commit | a45ab7d1fe148e9f03b4a1e4b37388e50a91cf0c (patch) | |
tree | c85070cbce34eddf4f6d18c8895ca4f9f515fe75 | |
parent | 2c72c9de48545d31878413b9ab656916679c1f14 (diff) | |
download | samba-a45ab7d1fe148e9f03b4a1e4b37388e50a91cf0c.tar.gz |
ctdb-recoverd: Simplify using TALLOC_FREE()
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
-rw-r--r-- | ctdb/server/ctdb_recoverd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ctdb/server/ctdb_recoverd.c b/ctdb/server/ctdb_recoverd.c index 0e6cf4bafd2..e0eb7d60b66 100644 --- a/ctdb/server/ctdb_recoverd.c +++ b/ctdb/server/ctdb_recoverd.c @@ -2743,8 +2743,7 @@ static void election_handler(struct ctdb_context *ctdb, uint64_t srvid, } /* we didn't win */ - talloc_free(rec->send_election_te); - rec->send_election_te = NULL; + TALLOC_FREE(rec->send_election_te); if (ctdb->recovery_lock_file != NULL) { /* Release the recovery lock file */ |