Ticket 48891 ns-slapd crashes during the shutdown after adding attribute with a matching rule
Bug Description:
in https://fedorahosted.org/389/ticket/48872, plugin free is moved from plugin_closeall
to be_cleanup.
The problem is that in be_cleanup, it frees be_database that can be a common reference
to the same be plugin (ldbm). It triggers a double free.
Fix Description:
Fix //fedorahosted.org/389/ticket/48872, frees plugin->plg_pwdstorageschemename
only if the plugin is typed PWD_STORAGE_SCHEME. This part of the fix is ok.
Reverting the plugin_free to be called in plugin_closeall.
https://fedorahosted.org/389/ticket/48891
Reviewed by: William Brown (Thanks William)
Platforms tested: F23
Flag Day: no
Doc impact: no