recoverd: Remove an unused temporary talloc context
authorMartin Schwenke <martin@meltin.net>
Fri, 16 Aug 2013 10:27:25 +0000 (20:27 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Thu, 22 Aug 2013 07:00:20 +0000 (17:00 +1000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
server/ctdb_recoverd.c

index 1682339d8df7d53b798eb4f7ded6c28b14a71023..da88f16cab478e950f388183b56df574b753958a 100644 (file)
@@ -2425,7 +2425,6 @@ static void ip_reallocate_handler(struct ctdb_context *ctdb, uint64_t srvid,
 
 static void process_ipreallocate_requests(struct ctdb_context *ctdb, struct ctdb_recoverd *rec)
 {
-       TALLOC_CTX *tmp_ctx = talloc_new(ctdb);
        TDB_DATA result;
        int32_t ret;
        struct ip_reallocate_list *callers;
@@ -2471,11 +2470,9 @@ static void process_ipreallocate_requests(struct ctdb_context *ctdb, struct ctdb
                }
        }
 
-       talloc_free(tmp_ctx);
        talloc_free(rec->ip_reallocate_ctx);
        rec->ip_reallocate_ctx = NULL;
        rec->reallocate_callers = NULL;
-       
 }