summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ldap/servers/plugins/dna/dna.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ldap/servers/plugins/dna/dna.c b/ldap/servers/plugins/dna/dna.c
index dfa86c44..00595463 100644
--- a/ldap/servers/plugins/dna/dna.c
+++ b/ldap/servers/plugins/dna/dna.c
@@ -2016,9 +2016,6 @@ static int dna_get_next_value(struct configEntry *config_entry,
slapi_modify_internal_pb(pb);
slapi_pblock_get(pb, SLAPI_PLUGIN_INTOP_RESULT, &ret);
-
- slapi_pblock_destroy(pb);
- pb = NULL;
}
if (LDAP_SUCCESS == ret) {
@@ -2036,8 +2033,9 @@ static int dna_get_next_value(struct configEntry *config_entry,
done:
slapi_unlock_mutex(config_entry->lock);
- if (pb)
+ if (pb) {
slapi_pblock_destroy(pb);
+ }
slapi_log_error(SLAPI_LOG_TRACE, DNA_PLUGIN_SUBSYSTEM,
"<-- dna_get_next_value\n");