浏览代码

Bug 630092 - Coverity #12003: Resource leaks issues

https://bugzilla.redhat.com/show_bug.cgi?id=630092

Description:

The cos_cache_add_defn() has been modified to release theDef
when an error occurs.
Endi Sukma Dewata 15 年之前
父节点
当前提交
a9b98efb4f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      ldap/servers/plugins/cos/cos_cache.c

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

@@ -1498,6 +1498,7 @@ static int cos_cache_add_defn(
 out:
 	if(ret < 0)
 	{
+		slapi_ch_free((void**)&theDef);
 		if(dn)
 			cos_cache_del_attrval_list(dn);
 		if(tree)