fix mem leak in RLC UM test and RLC AM stress tester

This commit is contained in:
Andre Puschmann 2018-02-16 21:32:53 +01:00
parent 1be93d4682
commit a6ccb05bb1
2 changed files with 9 additions and 0 deletions

View File

@ -85,6 +85,7 @@ private:
usleep(100);
}
running = false;
byte_buffer_pool::get_instance()->deallocate(pdu);
}
rlc_interface_mac *rlc1;

View File

@ -62,6 +62,14 @@ public:
n_sdus = 0;
}
~rlc_um_tester(){
for (uint32_t i = 0; i < NBUFS; i++) {
if (sdus[i] != NULL) {
byte_buffer_pool::get_instance()->deallocate(sdus[i]);
}
}
}
// PDCP interface
void write_pdu(uint32_t lcid, byte_buffer_t *sdu)
{