0ef4adb Ticket #48905 - coverity defects

Authored and Committed by nhosoi 7 years ago
    Ticket #48905 - coverity defects
    
    (1) Clang warning.
        ldap/servers/slapd/util.c:1631:20: warning: Dereference of null
        pointer (loaded from variable 'procpages')
        Fix Description - Changed to check if procpages as well as other
        arguments to return values are NULL or not first.  If any of them
        is NULL, the function returns failure.
    
    (2) Resource Leaks.
        ldap/servers/plugins/replication/repl5_tot_protocol.c:616:
        leaked_storage: Variable "pb" going out of scope leaks the storage
        it points to.
        Fix Description - Moved "lapi_pblock_destroy(pb)" to the location
        next to the "done" label so that it is guaranteed that "pb" is
        destroyed when the function returns.
    
        
file modified
+7 -3