mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-06 00:39:59 +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 */
|
/** send to the TRAP destination */
|
||||||
snmp_sendto(snmp_traps_handle, p, &td->dip, SNMP_TRAP_PORT);
|
snmp_sendto(snmp_traps_handle, p, &td->dip, SNMP_TRAP_PORT);
|
||||||
|
pbuf_free(p);
|
||||||
} else {
|
} else {
|
||||||
err = ERR_MEM;
|
err = ERR_MEM;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user