Fix two WRBUF leaks (memory)
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 1 Feb 2012 09:29:19 +0000 (10:29 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 1 Feb 2012 09:29:19 +0000 (10:29 +0100)
src/filter_zoom.cpp

index 17d7c10..f4e00a8 100644 (file)
@@ -231,6 +231,7 @@ yf::Zoom::Backend::~Backend()
         xsltFreeStylesheet(xsp);
     ZOOM_connection_destroy(m_connection);
     ZOOM_resultset_destroy(m_resultset);
+    wrbuf_destroy(m_apdu_wrbuf);
 }
 
 
@@ -710,6 +711,7 @@ bool yf::Zoom::Frontend::create_content_session(mp::Package &package,
         fclose(file);
         package.log("zoom", YLOG_LOG, "content file: %s", fname);
         xfree(fname);
+        wrbuf_destroy(w);
     }
     return true;
 }