From f0417995d0fccbfdefee4c96647e7347921abb73 Mon Sep 17 00:00:00 2001 From: Matej Sekoranja Date: Wed, 9 Mar 2016 22:59:21 +0100 Subject: [PATCH] UDP transport: memory issues fixed --- src/remote/blockingUDPTransport.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/remote/blockingUDPTransport.cpp b/src/remote/blockingUDPTransport.cpp index 7ada705..18e45ff 100644 --- a/src/remote/blockingUDPTransport.cpp +++ b/src/remote/blockingUDPTransport.cpp @@ -40,7 +40,7 @@ inline int sendto(int s, const char *buf, size_t len, int flags, const struct so #endif // reserve some space for CMD_ORIGIN_TAG message -#define RECEIVE_BUFFER_PRE_RESERVE PVA_MESSAGE_HEADER_SIZE + 16 +#define RECEIVE_BUFFER_PRE_RESERVE (PVA_MESSAGE_HEADER_SIZE + 16) PVACCESS_REFCOUNT_MONITOR_DEFINE(blockingUDPTransport); @@ -93,6 +93,7 @@ inline int sendto(int s, const char *buf, size_t len, int flags, const struct so if (_sendAddresses) delete _sendAddresses; if (_ignoredAddresses) delete _ignoredAddresses; + if (_tappedNIF) delete _tappedNIF; } void BlockingUDPTransport::start() {