aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/io/udpListener.c
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-light/src/hicn/io/udpListener.c')
-rw-r--r--hicn-light/src/hicn/io/udpListener.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hicn-light/src/hicn/io/udpListener.c b/hicn-light/src/hicn/io/udpListener.c
index 21b4f6190..16e8c8ddf 100644
--- a/hicn-light/src/hicn/io/udpListener.c
+++ b/hicn-light/src/hicn/io/udpListener.c
@@ -633,6 +633,7 @@ static void _readcb(int fd, PARCEventType what, void * listener_void) {
if(readLength < 0) {
printf("unable to read the message\n");
+ parcMemory_Deallocate(packet);
return;
}