andykimpe / rpms / 389-ds-base

Forked from rpms/389-ds-base 5 months ago
Clone
dc8c34
From 97b29320e0d72c9b02c6995f5adf4c85b2e839ba Mon Sep 17 00:00:00 2001
dc8c34
From: Mark Reynolds <mreynolds@redhat.com>
dc8c34
Date: Tue, 8 Oct 2013 10:28:47 -0400
dc8c34
Subject: [PATCH 140/225] Ticket 47517 - fix memory leak in ldbm_delete.c
dc8c34
dc8c34
https://fedorahosted.org/389/ticket/47517
dc8c34
dc8c34
reviewed by: nhosoi & richm(Thanks!)
dc8c34
(cherry picked from commit 200b4e44230840a5dd970e0f6b404053545cb381)
dc8c34
---
dc8c34
 ldap/servers/slapd/back-ldbm/ldbm_delete.c | 1 +
dc8c34
 1 file changed, 1 insertion(+)
dc8c34
dc8c34
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_delete.c b/ldap/servers/slapd/back-ldbm/ldbm_delete.c
dc8c34
index a3dc17b..d1ad3ef 100644
dc8c34
--- a/ldap/servers/slapd/back-ldbm/ldbm_delete.c
dc8c34
+++ b/ldap/servers/slapd/back-ldbm/ldbm_delete.c
dc8c34
@@ -336,6 +336,7 @@ ldbm_back_delete( Slapi_PBlock *pb )
dc8c34
 			 * and numsubordinate count could get confused.
dc8c34
 			 */
dc8c34
 			ID pid = (ID)strtol(pid_str, (char **)NULL, 10);
dc8c34
+			slapi_ch_free_string(&pid_str);
dc8c34
 			parent = id2entry(be, pid ,NULL, &retval);
dc8c34
 			if (parent && cache_lock_entry(&inst->inst_cache, parent)) {
dc8c34
 				/* Failed to obtain parent entry's entry lock */
dc8c34
-- 
dc8c34
1.8.1.4
dc8c34