|
|
@@ -2223,7 +2223,6 @@ void automember_rebuild_task_thread(void *arg){
|
|
|
}
|
|
|
}
|
|
|
automember_config_unlock();
|
|
|
- slapi_free_search_results_internal(search_pb);
|
|
|
|
|
|
out:
|
|
|
if (plugin_is_betxn && fixup_pb) {
|
|
|
@@ -2234,6 +2233,8 @@ out:
|
|
|
}
|
|
|
slapi_pblock_destroy(fixup_pb);
|
|
|
}
|
|
|
+ slapi_free_search_results_internal(search_pb);
|
|
|
+ slapi_pblock_destroy(search_pb);
|
|
|
|
|
|
if(result){
|
|
|
/* error */
|
|
|
@@ -2433,9 +2434,11 @@ void automember_export_task_thread(void *arg){
|
|
|
}
|
|
|
}
|
|
|
automember_config_unlock();
|
|
|
- slapi_free_search_results_internal(search_pb);
|
|
|
|
|
|
out:
|
|
|
+ slapi_free_search_results_internal(search_pb);
|
|
|
+ slapi_pblock_destroy(search_pb);
|
|
|
+
|
|
|
if(ldif_fd){
|
|
|
PR_Close(ldif_fd);
|
|
|
}
|