Skip to content

Commit

Permalink
Give memory back to system post snmp operation
Browse files Browse the repository at this point in the history
  • Loading branch information
feroz-ahmed authored and bvanassche committed Nov 30, 2023
1 parent 00a00aa commit 460a97c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions snmplib/container.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ void CONTAINER_CLEAR(netsnmp_container *x, netsnmp_container_obj_func *f,
x = x->prev;
}
x->clear(x, f, c);
malloc_trim(0);
}

#ifndef NETSNMP_FEATURE_REMOVE_CONTAINER_FREE_ALL
Expand Down

0 comments on commit 460a97c

Please sign in to comment.