certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] certi RTIA/FederationManagement.cc libCERTI/Mes...


From: certi-cvs
Subject: [certi-cvs] certi RTIA/FederationManagement.cc libCERTI/Mes...
Date: Sat, 03 May 2008 20:14:45 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     Eric NOULARD <erk>      08/05/03 20:14:45

Modified files:
        RTIA           : FederationManagement.cc 
        libCERTI       : Message.cc 

Log message:
        Fix bug #23150 : Memory leak in Message::getAHVPS
        This is the patch from Petr Gotthard

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/RTIA/FederationManagement.cc?cvsroot=certi&r1=3.59&r2=3.60
http://cvs.savannah.gnu.org/viewcvs/certi/libCERTI/Message.cc?cvsroot=certi&r1=3.50&r2=3.51

Patches:
Index: RTIA/FederationManagement.cc
===================================================================
RCS file: /sources/certi/certi/RTIA/FederationManagement.cc,v
retrieving revision 3.59
retrieving revision 3.60
diff -u -b -r3.59 -r3.60
--- RTIA/FederationManagement.cc        29 Apr 2008 13:11:15 -0000      3.59
+++ RTIA/FederationManagement.cc        3 May 2008 20:14:44 -0000       3.60
@@ -18,7 +18,7 @@
 // along with this program ; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 //
-// $Id: FederationManagement.cc,v 3.59 2008/04/29 13:11:15 erk Exp $
+// $Id: FederationManagement.cc,v 3.60 2008/05/03 20:14:44 erk Exp $
 // ----------------------------------------------------------------------------
 
 #include <config.h>
@@ -100,7 +100,7 @@
         cout << "RTIA: Federation destroyed" << endl ;
     //}
     
-    delete _FEDid ;
+    delete[] _FEDid ;
     G.Out(pdGendoc,"exit  ~FederationManagement");
 }
 

Index: libCERTI/Message.cc
===================================================================
RCS file: /sources/certi/certi/libCERTI/Message.cc,v
retrieving revision 3.50
retrieving revision 3.51
diff -u -b -r3.50 -r3.51
--- libCERTI/Message.cc 23 Apr 2008 07:36:01 -0000      3.50
+++ libCERTI/Message.cc 3 May 2008 20:14:45 -0000       3.51
@@ -394,6 +394,7 @@
         {
         value = getValue(i, &length);
         ahvps->add(handleArray[i], value, length);
+        delete[] value;
         }
 
     return ahvps ;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]