From: Adam Dickmeiss Date: Fri, 18 Jun 2010 08:56:09 +0000 (+0200) Subject: Detach result set from client on connection change X-Git-Tag: v1.4.2~3 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=99171d27a673a519c1d12e72ad9f46b70cafb387;p=pazpar2-moved-to-github.git Detach result set from client on connection change This is to ensure that when a result set is destructed it will never mangle with the ZOOM connection . It will also ensure that we never return anything but cached content for a result set when the connection (in a pazpar2 session) is reused. --- diff --git a/src/client.c b/src/client.c index 318f645..6540033 100644 --- a/src/client.c +++ b/src/client.c @@ -671,6 +671,8 @@ int client_destroy(struct client *c) void client_set_connection(struct client *cl, struct connection *con) { + if (cl->resultset) + ZOOM_resultset_release(cl->resultset); if (con) { assert(cl->connection == 0);