Commit 23161034 authored by Leonardo Lai's avatar Leonardo Lai

fixed memory leak

parent 16e9f20e
......@@ -268,6 +268,9 @@ ssize_t udpdk_recvfrom(int sockfd, void *buf, size_t len, int flags,
*addrlen = eff_addrlen;
}
// Free the mbuf
rte_pktmbuf_free(pkt);
// Return how many bytes read
return eff_len;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment