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

List:       helix-server-cvs
Subject:    [Server-cvs] protocol/http http_demux.cpp,1.68.2.1,1.68.2.2
From:       ryuan () helixcommunity ! org
Date:       2012-09-27 11:07:23
[Download RAW message or body]

Update of /cvsroot/server/protocol/http
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv16487

Modified Files:
      Tag: SERVER_15_0
	http_demux.cpp 
Log Message:
Synopsis:
=========
Fixes Bug 270702 Uptime: There has memory leak even no clients are connected

Branches: SERVER_15_0, head
Suggested Reviewers: James, Xiaocheng and Anyone

Description:
============
Make codes safer to avoid memory leak.

Files affected:
===============
server/protocol/http/httpprot.cpp

Testing Performed:
================
Unit Tests:
As the bug.

Integration Tests:
None

Leak Tests: None
Performance Tests: N/A

Platforms Tested: win-x86_64-vc10.
Builds Verified: win-x86_64-vc10.

QA Hints
========
None.



Index: http_demux.cpp
===================================================================
RCS file: /cvsroot/server/protocol/http/http_demux.cpp,v
retrieving revision 1.68.2.1
retrieving revision 1.68.2.2
diff -u -d -r1.68.2.1 -r1.68.2.2
--- http_demux.cpp	1 Aug 2012 12:33:46 -0000	1.68.2.1
+++ http_demux.cpp	27 Sep 2012 11:07:15 -0000	1.68.2.2
@@ -360,6 +360,7 @@
 CHTTPDemux::CreateClient(void)
 {
     HX_ASSERT(m_pClient == NULL);
+    HX_RELEASE(m_pClient);
     m_pClient = new Client(m_proc);
     m_pClient->AddRef();
     m_pClient->Init(HXPROT_HTTP, this);


_______________________________________________
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