Skip to content
  • Jacob Erlbeck's avatar
    pcu: Fix memory corruption bugs (ASAN) · c362df25
    Jacob Erlbeck authored
    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
    c362df25