Update dhcp_server.c

This commit is contained in:
ruiqian 2017-05-15 22:27:51 +08:00 committed by GitHub
parent 8c52d5fdf2
commit da9688df86
1 changed files with 4 additions and 1 deletions

View File

@ -122,7 +122,10 @@ static rt_err_t _low_level_dhcp_send(struct netif *netif,
memcpy((char *)udphdr + sizeof(struct udp_hdr),
buffer, size);
return netif->linkoutput(netif, p);
netif->linkoutput(netif, p);
pbuf_free(p);
return RT_EOK;
}
static void dhcpd_thread_entry(void *parameter)