1808f31 Ticket 50308 - Revise memory leak fix

Authored and Committed by mreynolds 5 years ago
    Ticket 50308 - Revise memory leak fix
    
    Description;  Turns out the previous commit did not address
                  the changelog leak, and it introduced a compiler
                  warning.  This part of the fix is being reverted.
    
    https://pagure.io/389-ds-base/issue/50308