mreynolds / 389-ds-base

Forked from 389-ds-base 6 years ago
Clone

46fb7ce Issue 51016 - Fix memory leaks in changelog5_init and perfctrs_init

Authored and Committed by spichugi 4 years ago
    Issue 51016 - Fix memory leaks in changelog5_init and perfctrs_init
    
    Bug Description: Memory Leaks are detected by ASAN in changelog5_init
    and perfctrs_init functions.
    
    Fix Description: For perfctrs_init, free existing memory before initializing
    new memory which will be assigned to the existing stucts.
    For changelog5_init, run cl5Cleanup instead of cl5Close for BE preop.
    
    https://pagure.io/389-ds-base/issue/51016
    
    Reviewed by: lkrispen (Thanks!)