Ticket 50736 - RetroCL trimming may crash at shutdown if trimming configuration is invalid
Bug Description:
If config of retroCL trimming contains invalid value for trim-interval
and/or maxage, then the trimming initialization is skipped.
In such case the trimming structures are not allocated and if they
are freed at shutdown it triggers a crash
Fix Description:
When trimming mechanism is stopped (at shutdown) check that
it was successfully initialized before freeing the structs
https://pagure.io/389-ds-base/issue/50736
Reviewed by: Mark Reynolds
Platforms tested: F30
Flag Day: no
Doc impact: no