mirror of https://github.com/PentHertz/srsLTE.git
Fix RRC serving cell leak
This commit is contained in:
parent
7e1ae45d58
commit
154b9a84c8
|
@ -997,6 +997,9 @@ void rrc::set_serving_cell(uint32_t cell_idx) {
|
|||
if (!add_neighbour_cell(serving_cell)) {
|
||||
rrc_log->info("Serving cell not added to list of neighbours. Worse than current neighbours\n");
|
||||
}
|
||||
} else {
|
||||
// Do not leak it if we are not adding to neighbour list
|
||||
delete serving_cell;
|
||||
}
|
||||
|
||||
// Set new serving cell
|
||||
|
|
Loading…
Reference in New Issue