From 53850e53538479602fa9c9c2c9e969061ca1e87f Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Sun, 30 Dec 2018 22:57:33 +0100 Subject: [PATCH] delete MRB bearer during PDCP destruction --- lib/src/upper/pdcp.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/src/upper/pdcp.cc b/lib/src/upper/pdcp.cc index 0fce441ad..b5cd23bf7 100644 --- a/lib/src/upper/pdcp.cc +++ b/lib/src/upper/pdcp.cc @@ -48,6 +48,11 @@ pdcp::~pdcp() } pdcp_array.clear(); + for (pdcp_map_t::iterator it = pdcp_array_mrb.begin(); it != pdcp_array_mrb.end(); ++it) { + delete (it->second); + } + pdcp_array_mrb.clear(); + pthread_rwlock_unlock(&rwlock); pthread_rwlock_destroy(&rwlock); }