ldap/servers/plugins/dna/dna.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit c74a13d7c46887e45aea48e76424ed2f0155cf72
Author: Nathan Kinder <nkinder(a)redhat.com>
Date: Fri Apr 29 08:56:46 2011 -0700
Bug 700557 - Leak at shutdown in DNA plug-in
The previous commit for bug 700557 has a leak in the DNA plug-in
when the plug-in has already had it's close() call called during
shutdown. This frees the leaked Slapi_DN.
diff --git a/ldap/servers/plugins/dna/dna.c b/ldap/servers/plugins/dna/dna.c
index a245a8d..8c744c4 100644
--- a/ldap/servers/plugins/dna/dna.c
+++ b/ldap/servers/plugins/dna/dna.c
@@ -3316,8 +3316,7 @@ dna_release_range(char *range_dn, PRUint64 *lower, PRUint64 *upper)
/* Bail out if the plug-in close function was just called. */
if (!g_plugin_started) {
- dna_unlock();
- return 0;
+ goto bail;
}
/* Go through the config entries to see if we