mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-28 14:54:05 +00:00
Fix [bug #48330] Memory leak in snmp_send_trap function
Forgot to free pbuf after sending it
This commit is contained in:
parent
4047702928
commit
500e748888
@ -192,6 +192,7 @@ snmp_send_trap(const struct snmp_obj_id *device_enterprise_oid, s32_t generic_tr
|
||||
|
||||
/** send to the TRAP destination */
|
||||
snmp_sendto(snmp_traps_handle, p, &td->dip, SNMP_TRAP_PORT);
|
||||
pbuf_free(p);
|
||||
} else {
|
||||
err = ERR_MEM;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user