85c3c30 Ticket 50308 - Fix memory leaks for repeat binds and replication

Authored and Committed by mreynolds 5 years ago
    Ticket 50308 - Fix memory leaks for repeat binds and replication
    
    Description:  Fixed two memory leaks:
    
        - If a worker thread had multiple binds the "bind dn"
          thread data was leaked.
        - Memory leak when processing changes in the changelog
    
    https://pagure.io/389-ds-base/issue/50308
    
    Reviewed by: firstyear(Thanks!)
    
    (cherry picked from commit 6c2bb66f15d7ab8ab079effc66e0705c2513b1fd)