Fix [bug #48330] Memory leak in snmp_send_trap function

Forgot to free pbuf after sending it
This commit is contained in:
Dirk Ziegelmeier 2016-06-28 21:31:12 +02:00
parent 4047702928
commit 500e748888

View File

@ -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;
}