Blame SOURCES/0065-Ticket-48266-do-not-free-repl-keep-alive-entry-on-er.patch

a2f18f
From 3a3d1f22ea262270bc859aeb4c80928d5a085817 Mon Sep 17 00:00:00 2001
a2f18f
From: Mark Reynolds <mreynolds@redhat.com>
a2f18f
Date: Tue, 22 Sep 2015 13:58:38 -0400
a2f18f
Subject: [PATCH 65/65] Ticket 48266 - do not free repl keep alive entry on
a2f18f
 error
a2f18f
a2f18f
Description:  There is no need to free the "repl keep alive" entry
a2f18f
              if any stage of the "add" fails.  Otherwise we could
a2f18f
              potentially run into a double free.
a2f18f
a2f18f
https://fedorahosted.org/389/ticket/48266
a2f18f
a2f18f
Reviewed by: nhosoi(Thanks!)
a2f18f
a2f18f
(cherry picked from commit e5d9b0c741af1c3ea5e8212148a3ba95ee18925b)
a2f18f
(cherry picked from commit f95e73f620987de9107246b30b28fd463024b61f)
a2f18f
---
a2f18f
 ldap/servers/plugins/replication/repl5_replica.c | 1 -
a2f18f
 1 file changed, 1 deletion(-)
a2f18f
a2f18f
diff --git a/ldap/servers/plugins/replication/repl5_replica.c b/ldap/servers/plugins/replication/repl5_replica.c
a2f18f
index 708008c..8b53f3c 100644
a2f18f
--- a/ldap/servers/plugins/replication/repl5_replica.c
a2f18f
+++ b/ldap/servers/plugins/replication/repl5_replica.c
a2f18f
@@ -456,7 +456,6 @@ replica_subentry_create(Slapi_DN *repl_root, ReplicaId rid)
a2f18f
                 "create replication keep alive entry %s: %s\n", slapi_entry_get_dn_const(e),
a2f18f
                 ldap_err2string(return_value));
a2f18f
         rc = -1;
a2f18f
-        slapi_entry_free(e); /* The entry was not consumed */
a2f18f
         goto done;
a2f18f
     }
a2f18f
 
a2f18f
-- 
a2f18f
1.9.3
a2f18f