diff options
Diffstat (limited to 'hicn-light/src/hicn/io/hicnListener.c')
-rw-r--r-- | hicn-light/src/hicn/io/hicnListener.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hicn-light/src/hicn/io/hicnListener.c b/hicn-light/src/hicn/io/hicnListener.c index 7d911b18a..8647a4d54 100644 --- a/hicn-light/src/hicn/io/hicnListener.c +++ b/hicn-light/src/hicn/io/hicnListener.c @@ -216,7 +216,10 @@ static void _hicnListener_readcb(int fd, PARCEventType what, void *listener_void static bool _isEmptyAddressIPv4(Address *address) { bool res = false; - if (strcmp("inet4://0.0.0.0:1234", addressToString(address)) == 0) res = true; + char * str = addressToString(address); + if (strcmp("inet4://0.0.0.0:1234", str) == 0) res = true; + parcMemory_Deallocate((void**)&str); + return res; } |