From c570e74384a63b88d38d7697be435dd8de130ac8 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Thu, 31 Oct 2019 15:01:29 +0000 Subject: [HICN-371] Solve memory leaks in libtransport. Signed-off-by: Mauro Sardara Change-Id: I654843c3361c7bdb4b160f2441f08e8d91e97384 Signed-off-by: Mauro Sardara --- utils/src/hiperf.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'utils') 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; -- cgit 1.2.3-korg