You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2010/02/17 01:37:35 UTC

svn commit: r910789 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/zip/Inflater.cpp

Author: tabish
Date: Wed Feb 17 00:37:35 2010
New Revision: 910789

URL: http://svn.apache.org/viewvc?rev=910789&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQCPP-287

Fix memory leak in the Inflater destructor

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/zip/Inflater.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/zip/Inflater.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/zip/Inflater.cpp?rev=910789&r1=910788&r2=910789&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/zip/Inflater.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/zip/Inflater.cpp Wed Feb 17 00:37:35 2010
@@ -150,6 +150,7 @@
 Inflater::~Inflater() {
     try{
         this->end();
+        delete data;
     }
     DECAF_CATCH_NOTHROW( Exception )
     DECAF_CATCHALL_NOTHROW()