a2df295 Ticket 49531 - coverity issues - fix memory leaks

Authored and Committed by mreynolds 6 years ago
    Ticket 49531 - coverity issues - fix memory leaks
    
    Description:  There were two false positives around pwpolicy struct
                  being leaked, but it is freed when the pblock is
                  destroyed.  The other two leaks were real, but they
                  only occurred during error conditions.
    
    https://pagure.io/389-ds-base/issue/49531
    
    Reviewed by: lkrispen (Thanks!)
    
    (cherry picked from commit 700d7422e6309d2d405961abbb805fbfe852e53c)