From 914642f65fcf35e48e77bd3c8ce377539af9045a Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Wed, 11 Jan 2012 19:30:06 -0500 Subject: - avoid using pblocks for more than one internal operation - the server allocates internal state each time but doesn't clean up any that's aready there if you reuse the block - correctly free values we use when constructing compat entries --- src/back-nis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/back-nis.c') diff --git a/src/back-nis.c b/src/back-nis.c index dbe81ce..c824312 100644 --- a/src/back-nis.c +++ b/src/back-nis.c @@ -909,6 +909,7 @@ backend_get_set_config(struct plugin_state *state, NULL, backend_get_set_config_entry_cb, NULL); + slapi_pblock_destroy(pb); defaults_get_map_config(map, &map_secure, &default_filter, NULL, NULL, NULL, NULL, NULL); if (cbdata.entry_filter == NULL) { @@ -922,7 +923,6 @@ backend_get_set_config(struct plugin_state *state, free(cbdata.entry_filter); /* Clean up. */ - slapi_pblock_destroy(pb); free(filter); } -- cgit