From b40605bc7f7a4b2bec9a2f5eefc3a68725cddc08 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Fri, 25 May 2018 12:04:25 +0200 Subject: [PATCH] delete neighbour cells in rrc dtor --- srsue/src/upper/rrc.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/srsue/src/upper/rrc.cc b/srsue/src/upper/rrc.cc index f94e0d59d..587cb9d1b 100644 --- a/srsue/src/upper/rrc.cc +++ b/srsue/src/upper/rrc.cc @@ -66,6 +66,11 @@ rrc::~rrc() if (serving_cell) { delete(serving_cell); } + + std::vector::iterator it; + for (it = neighbour_cells.begin(); it != neighbour_cells.end(); ++it) { + delete(*it); + } } static void liblte_rrc_handler(void *ctx, char *str) {