b940d05 Issue 50610 - memory leaks in dbscan and changelog encryption

Authored and Committed by Simon Pichugin 3 years ago
    Issue 50610 - memory leaks in dbscan and changelog encryption
    
    Bug Description: More leaks are present that involve dbscan
    execution (the issue happens on instance restart though).
    
    Fix Description: dbscan - add 'done:' section to which we can
    go to if something went worng and free the allocated data.
    
    changelog encryption - add clcrypt_destroy function;
    properly free the allocated memory when we go to shutdown.
    When we do changelog5_config_done, additionally free
    config->symmetricKey, config->dbconfig.encryptionAlgorithm,
    and config->dbconfig.symmetricKey
    
    https://pagure.io/389-ds-base/issue/50610
    
    Reviewed by: lkrispen (Thanks!)