mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
ITS#6021 minor cleanup
This commit is contained in:
parent
2a4bce0633
commit
a9a50a6a3e
@ -1175,6 +1175,8 @@ free_query (CachedQuery* qc)
|
||||
{
|
||||
free(qc->q_uuid.bv_val);
|
||||
filter_free(qc->filter);
|
||||
ldap_pvt_thread_rdwr_destroy( &qc->rwlock );
|
||||
memset(qc, 0, sizeof(*qc));
|
||||
free(qc);
|
||||
}
|
||||
|
||||
@ -1264,6 +1266,7 @@ add_query(
|
||||
new_cached_query = find_filter( op, qbase->scopes[query->scope],
|
||||
query->filter, first );
|
||||
filter_free( query->filter );
|
||||
query->filter = NULL;
|
||||
}
|
||||
Debug( pcache_debug, "TEMPLATE %p QUERIES++ %d\n",
|
||||
(void *) templ, templ->no_of_queries, 0 );
|
||||
|
Loading…
Reference in New Issue
Block a user