aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-10-31 15:01:29 +0000
committerMauro Sardara <msardara@cisco.com>2019-10-31 15:14:44 +0000
commitc570e74384a63b88d38d7697be435dd8de130ac8 (patch)
tree0abeb2fcd3d058155a37f31e1b9b23a89c1ab78d /utils
parentfc6dfe9f7ee02834ae1e6f56e0aaee36ac3e88dd (diff)
[HICN-371] Solve memory leaks in libtransport.
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I654843c3361c7bdb4b160f2441f08e8d91e97384 Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/src/hiperf.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/src/hiperf.cc b/utils/src/hiperf.cc
index 94e5d998d..078e9c3f1 100644
--- a/utils/src/hiperf.cc
+++ b/utils/src/hiperf.cc
@@ -191,6 +191,11 @@ class HIperfClient {
rtc_callback_(configuration_.rtc_ ? new RTCCallback(*this) : nullptr),
callback_(configuration_.rtc_ ? nullptr : new Callback(*this)) {}
+ ~HIperfClient() {
+ delete callback_;
+ delete rtc_callback_;
+ }
+
void checkReceivedRtcContent(ConsumerSocket &c,
const ContentObject &contentObject) {
if (!configuration_.test_mode_) return;