dd14c53 Ticket 50340 - structs for diabled plugins will not be freed

Authored and Committed by lkrispen 4 years ago
    Ticket 50340 - structs for diabled plugins will not be freed
    
    Bug: when plugins are loaded from dse.ldif enabled plugins will be added to
    	the list of the plugin type and freed when plugins are stopped.
    	But the memory allocated for disabled plugins will remain allocated and
    	and be reported.
    
    Fix: free plugin if not enabled after loading
    	This will alos let the many leaks reported for "GrowStuff" disappear.
    	The fix also contains one missing free for slapi_ch_smprintf allocated memory
    
    Reviewed by: Mark, thanks
    
        
file modified
+1 -1