Fix memory leak: scan ODR was not released
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 28 Nov 2012 13:37:14 +0000 (14:37 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 28 Nov 2012 13:37:14 +0000 (14:37 +0100)
src/yaz-proxy.cpp

index 7233565..e17b2ef 100644 (file)
@@ -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)