aa76f6b Ticket #48135 - memory leak in new_passwdPolicy (1.2.11 only)

Authored and Committed by nhosoi 9 years ago
    Ticket #48135 - memory leak in new_passwdPolicy (1.2.11 only)
    
    Description: Backporting #47900 patch introduced a leak. The patch
    has a dependency on #147, which was not backported to 1.2.11 branch.
    This patch releases the pwdpolicy object in op_shared_add every time.
    Also, moving new_passwdPolicy only where it is needed.
    
    https://fedorahosted.org/389/ticket/48135
    
    Reviewed by rmeggins@redhat.com (Thank you, Rich!!)
    
        
file modified
+3 -2