ZOOM_resultset_destroy is now called in client_destroy. In earlier
1.4-releases of Pazpar2 it was called in client_set_connection.
It migth be good idea to add a ZOOM call to disassociate a
ZOOM_resultset from a ZOOM_connection to ensure no referral
to a ZOOM_connection in use by a different client (session).
xfree(c->cqlquery);
c->cqlquery = 0;
assert(!c->connection);
- assert(!c->resultset);
-
+
+ if (c->resultset)
+ {
+ ZOOM_resultset_destroy(c->resultset);
+ }
yaz_mutex_destroy(&c->mutex);
xfree(c);
client_use(-1);
void client_set_connection(struct client *cl, struct connection *con)
{
- if (cl->resultset)
- {
- ZOOM_resultset_destroy(cl->resultset);
- cl->resultset = 0;
- }
if (con)
{
assert(cl->connection == 0);