From 9970496be27d5707330e15a4fde0705b88e1e195 Mon Sep 17 00:00:00 2001 From: Rich Megginson <rmeggins@xxxxxxxxxx> Date: Fri, 3 Feb 2012 14:16:41 -0700 Subject: [PATCH] coverity 12488 Resource leak In attr_index_config(): Leak of memory or pointers to system resources need to free "a" in case of error return --- ldap/servers/slapd/back-ldbm/ldbm_attr.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ldap/servers/slapd/back-ldbm/ldbm_attr.c b/ldap/servers/slapd/back-ldbm/ldbm_attr.c index 63be423..7433ec7 100644 --- a/ldap/servers/slapd/back-ldbm/ldbm_attr.c +++ b/ldap/servers/slapd/back-ldbm/ldbm_attr.c @@ -248,6 +248,7 @@ attr_index_config( if(hasIndexType == 0){ /* indexType missing, error out */ LDAPDebug(LDAP_DEBUG_ANY, "attr_index_config: Missing index type\n", 0, 0, 0); + attrinfo_delete(&a); return; } } -- 1.7.1
-- 389-devel mailing list 389-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/389-devel