dsdb: fix double-free in replication failure case on RODC
authorAndrew Bartlett <abartlet@samba.org>
Fri, 30 Sep 2011 01:53:51 +0000 (18:53 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 6 Oct 2011 00:11:34 +0000 (02:11 +0200)
source4/dsdb/samdb/ldb_modules/repl_meta_data.c

index 7a642426b48464cfdcd818c830360eb96db6ff4f..0418c048568de834ee0f8cc64961e09e5877fdb9 100644 (file)
@@ -2560,7 +2560,7 @@ static int replmd_rename_callback(struct ldb_request *req, struct ldb_reply *are
                                           lpcfg_dnsdomain(lp_ctx),
                                           ldb_dn_get_linearized(olddn));
                ret = ldb_module_send_referral(req, referral);
                                           lpcfg_dnsdomain(lp_ctx),
                                           ldb_dn_get_linearized(olddn));
                ret = ldb_module_send_referral(req, referral);
-               talloc_free(ac);
+               talloc_free(ares);
                return ldb_module_done(req, NULL, NULL, ret);
        }
 
                return ldb_module_done(req, NULL, NULL, ret);
        }