summaryrefslogtreecommitdiffstats
path: root/ldap/servers/snmp
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-07-18 17:29:42 -0500
committerNoriko Hosoi <nhosoi@redhat.com>2010-08-20 13:04:54 -0700
commit193258fef18fdd5b7dda52d29df926aa4df50da5 (patch)
treeea1083289288d45e12182b224e077d221f6405e4 /ldap/servers/snmp
parent119628c030e209ba342b83914b76eeb1fbcd2dd4 (diff)
downloadds-193258fef18fdd5b7dda52d29df926aa4df50da5.tar.gz
ds-193258fef18fdd5b7dda52d29df926aa4df50da5.tar.xz
ds-193258fef18fdd5b7dda52d29df926aa4df50da5.zip
Bug 616500 - fix coverify Defect Type: Resource leaks issues CID 12094 - 12136
https://bugzilla.redhat.com/show_bug.cgi?id=616500 Resolves: bug 616500 Bug description: fix coverify Defect Type: Resource leaks issues CID 12118, 12119, 12120 description: Fixed resource leaks in initialize_stats_table().
Diffstat (limited to 'ldap/servers/snmp')
-rw-r--r--ldap/servers/snmp/ldap-agent.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ldap/servers/snmp/ldap-agent.c b/ldap/servers/snmp/ldap-agent.c
index 8e20e67d..c51bfdc0 100644
--- a/ldap/servers/snmp/ldap-agent.c
+++ b/ldap/servers/snmp/ldap-agent.c
@@ -160,6 +160,9 @@ initialize_stats_table(void)
!ops_table_info || !entries_table_info || !entity_table_info) {
/* malloc failed */
snmp_log(LOG_ERR, "malloc failed in initialize_stats_table\n");
+ SNMP_FREE(ops_table_info);
+ SNMP_FREE(entries_table_info);
+ SNMP_FREE(entity_table_info);
return;
}