Skip to content

Commit fdd6545

Browse files
snmplib: add deallocation of container name
The function netsnmp_binary_array_release() does not deallocate dynamic char array.
1 parent 88ee2a7 commit fdd6545

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

snmplib/container_binary_array.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ netsnmp_binary_array_release(netsnmp_container *c)
205205
binary_array_table *t = (binary_array_table*)c->container_data;
206206
SNMP_FREE(t->data);
207207
SNMP_FREE(t);
208+
SNMP_FREE(c->container_name);
208209
SNMP_FREE(c);
209210
}
210211

0 commit comments

Comments
 (0)