From: Adam Dickmeiss Date: Wed, 1 Feb 2012 11:35:19 +0000 (+0100) Subject: zoom: reset result sets (major leak) X-Git-Tag: v1.3.22~8 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=91f90a841fce947728e6c36e7fb923579d979cdc;p=metaproxy-moved-to-github.git zoom: reset result sets (major leak) --- diff --git a/src/filter_zoom.cpp b/src/filter_zoom.cpp index f30b518..0d5349a 100644 --- a/src/filter_zoom.cpp +++ b/src/filter_zoom.cpp @@ -279,6 +279,7 @@ void yf::Zoom::Backend::connect(std::string zurl, void yf::Zoom::Backend::search(ZOOM_query q, Odr_int *hits, int *error, char **addinfo, ODR odr) { + ZOOM_resultset_destroy(m_resultset); m_resultset = ZOOM_connection_search(m_connection, q); get_zoom_error(error, addinfo, odr); if (*error == 0)