[prev in list] [next in list] [prev in thread] [next in thread] 

List:       helix-server-cvs
Subject:    [Server-cvs] engine/inputsource mdpshim.cpp,1.1.2.4,1.1.2.5
From:       rasher () helixcommunity ! org
Date:       2007-12-27 6:21:33
Message-ID: 200712270621.lBR6LfIT016373 () mailer ! progressive-comp ! com
[Download RAW message or body]

Update of /cvsroot/server/engine/inputsource
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv32692

Modified Files:
      Tag: SERVER_12
	mdpshim.cpp 
Log Message:
Synopsis
  ==========

 Buffer needs to be Released which creates a memory leak in mdpShim.

 Branches           :  HEAD , SERVER_12_RN
 Suggested Reviewer :  Jamie

   Description
   ============
      In PacketReady after calling AdjustTimeStamp Buffer needs to be
released.

   Files Affected
  ================

   server\engine\inputsource\mdpshim.cpp

   Testing Performed
  =================

 Leak-Tests:
    n/a

Build verified  :win32-i386-vc7
Platforms tested: win32-i386-vc7


 Thanks
 Raj  Asher




Index: mdpshim.cpp
===================================================================
RCS file: /cvsroot/server/engine/inputsource/mdpshim.cpp,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -u -d -r1.1.2.4 -r1.1.2.5
--- mdpshim.cpp	24 Dec 2007 20:34:01 -0000	1.1.2.4
+++ mdpshim.cpp	27 Dec 2007 06:21:30 -0000	1.1.2.5
@@ -232,6 +232,7 @@
 
     pBuf = ParsePacket(pPacket, ulCurTS);
     pNewPacket = AdjustTimeStamp(pPacket,pBuf);
+    HX_RELEASE(pBuf);
     if (!pNewPacket)
     {
         return HXR_UNEXPECTED;
@@ -242,6 +243,7 @@
     }
     else
     {
+        HX_RELEASE(pNewPacket);
         HX_ASSERT(!"missing m_pPacketSink");
         return HXR_UNEXPECTED;
     }


_______________________________________________
Server-cvs mailing list
Server-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/server-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic