diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2016-01-20 22:02:19 +0100 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2016-02-01 13:56:32 +0100 |
commit | c362df25a2eb469aa70827b469f3898447814697 (patch) | |
tree | d7d7e451c2d0a7f7e6096631ac03dfcfb446eae1 /src/gprs_ms_storage.h | |
parent | 27dc9414757df5436f7f5a5c8708219aa7a1ee6d (diff) |
pcu: Fix memory corruption bugs (ASAN)
ASAN has found improper deletion of objects. These only occur
on shutdown but makes it impossible to run the test cases with
full ASAN support.
This commit fixes some of them and deactivates the freeing of the_pcu.bctx
which may cause a corruption in BTS::~BTS() later on.
Note that the latter is only a work-aound and should be fixed
properly. It will leak bctx objects, but this is currently not
critical, since gprs_bssgp_destroy is only called once, immediately
before a call to exit().
Ticket: OW#1572
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/gprs_ms_storage.h')
-rw-r--r-- | src/gprs_ms_storage.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gprs_ms_storage.h b/src/gprs_ms_storage.h index df788bf7..44ad0ed4 100644 --- a/src/gprs_ms_storage.h +++ b/src/gprs_ms_storage.h @@ -33,6 +33,8 @@ public: GprsMsStorage(BTS *bts); ~GprsMsStorage(); + void cleanup(); + virtual void ms_idle(class GprsMs *); virtual void ms_active(class GprsMs *); |