From: Adam Dickmeiss Date: Wed, 28 Nov 2012 13:37:14 +0000 (+0100) Subject: Fix memory leak: scan ODR was not released X-Git-Tag: v1.3.8~8 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=9f2b5252885fdfbdae2c77f52ff3852ae0818111;p=yazproxy-moved-to-github.git Fix memory leak: scan ODR was not released --- diff --git a/src/yaz-proxy.cpp b/src/yaz-proxy.cpp index 7233565..e17b2ef 100644 --- a/src/yaz-proxy.cpp +++ b/src/yaz-proxy.cpp @@ -340,6 +340,8 @@ Yaz_Proxy::~Yaz_Proxy() odr_destroy(m_s2z_odr_init); if (m_s2z_odr_search) odr_destroy(m_s2z_odr_search); + if (m_s2z_odr_scan) + odr_destroy(m_s2z_odr_scan); if (!m_parent) low_socket_close(); if (!m_parent)