Browse Source

Bug 619122 - fix coverify Defect Type: Resource leaks issues CID 11975 - 12053

https://bugzilla.redhat.com/show_bug.cgi?id=619122
Resolves: bug 619122
Bug description: fix coverify Defect Type: Resource leaks issues CID 12003.
description: The cos_cache_add_defn() has been modified to release resources if an error occurs.
Endi S. Dewata 15 years ago
parent
commit
7f763f5130
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ldap/servers/plugins/cos/cos_cache.c

+ 1 - 1
ldap/servers/plugins/cos/cos_cache.c

@@ -1482,7 +1482,7 @@ static int cos_cache_add_defn(
 		}
 	}
 
-	if(ret == -1)
+	if(ret < 0)
 	{
 		if(dn)
 			cos_cache_del_attrval_list(dn);