56a24df Ticket 48964 - should not free repl name after purging changelog

Authored and Committed by mreynolds 2 years ago
    Ticket 48964 - should not free repl name after purging changelog
    
    Bug Description:  The previous commit for this ticket incorrectly
                      freed a replica struct const char.  There was also
                      a minor converity issue.
    
    Fix Description:  Do not free the repl_name after purging, and do
                      not check if "replica" is NULL when creating the
                      purge data.
    
    https://fedorahosted.org/389/ticket/48964
    
    Reviewed by: tbordaz(Thanks!)
    
    (cherry picked from commit 017469a1a055da03fc3fb4b34a7732611b7bd2b0)