summaryrefslogtreecommitdiffstats
path: root/ldap/servers/snmp
diff options
context:
space:
mode:
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;
}