瀏覽代碼

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 12027.
description: The windows_conn_new() has been modified to release rpc when an error occurs.
Endi S. Dewata 15 年之前
父節點
當前提交
1aed664240
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      ldap/servers/plugins/replication/windows_connection.c

+ 1 - 0
ldap/servers/plugins/replication/windows_connection.c

@@ -184,6 +184,7 @@ windows_conn_new(Repl_Agmt *agmt)
 	return rpc;
 loser:
 	windows_conn_delete(rpc);
+	slapi_ch_free((void**)&rpc);
 	LDAPDebug( LDAP_DEBUG_TRACE, "<= windows_conn_new - loser\n", 0, 0, 0 );
 	return NULL;
 }