cc3dff
From bda97e4f914e18d9d7b2de9b0e9bdc4014c73855 Mon Sep 17 00:00:00 2001
cc3dff
From: Mark Reynolds <mreynolds@redhat.com>
cc3dff
Date: Mon, 25 Nov 2013 09:36:25 -0500
cc3dff
Subject: [PATCH 59/65] Ticket 47599 - fix memory leak
cc3dff
cc3dff
Coverity 12410
cc3dff
cc3dff
https://fedorahosted.org/389/ticket/47599
cc3dff
cc3dff
Reviewed by: richm(Thanks!)
cc3dff
(cherry picked from commit a16bf1b3c4ff0412c2481baace9b427750c11f8c)
cc3dff
(cherry picked from commit c7e7c68ea4779601ec4896b1d90f3b6d347f047f)
cc3dff
(cherry picked from commit 08dc37dc832e1ce78d27012a60b1691dba2f6501)
cc3dff
---
cc3dff
 ldap/servers/slapd/back-ldbm/seq.c | 1 +
cc3dff
 1 file changed, 1 insertion(+)
cc3dff
cc3dff
diff --git a/ldap/servers/slapd/back-ldbm/seq.c b/ldap/servers/slapd/back-ldbm/seq.c
cc3dff
index 27da2a4..10484fd 100644
cc3dff
--- a/ldap/servers/slapd/back-ldbm/seq.c
cc3dff
+++ b/ldap/servers/slapd/back-ldbm/seq.c
cc3dff
@@ -242,6 +242,7 @@ ldbm_back_seq( Slapi_PBlock *pb )
cc3dff
 				key.flags = 0;
cc3dff
 				for (retry_count = 0; retry_count < IDL_FETCH_RETRY_COUNT; retry_count++) {
cc3dff
 					err = NEW_IDL_DEFAULT;
cc3dff
+					idl_free(idl);
cc3dff
 					idl = idl_fetch( be, db, &key, txn.back_txn_txn, ai, &err );
cc3dff
 					if(err == DB_LOCK_DEADLOCK) {
cc3dff
 						ldbm_nasty("ldbm_back_seq deadlock retry", 1600, err);
cc3dff
-- 
cc3dff
1.8.1.4
cc3dff