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

List:       helix-server-cvs
Subject:    [Server-cvs] protocol/http httpprot.cpp,1.146.2.13,1.146.2.14
From:       ryuan () helixcommunity ! org
Date:       2012-09-28 4:20:07
[Download RAW message or body]

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

Modified Files:
      Tag: SERVER_15_0
	httpprot.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: httpprot.cpp
===================================================================
RCS file: /cvsroot/server/protocol/http/httpprot.cpp,v
retrieving revision 1.146.2.13
retrieving revision 1.146.2.14
diff -u -d -r1.146.2.13 -r1.146.2.14
--- httpprot.cpp	27 Sep 2012 07:55:14 -0000	1.146.2.13
+++ httpprot.cpp	28 Sep 2012 04:19:57 -0000	1.146.2.14
@@ -3338,6 +3338,7 @@
     }
 #endif
 
+    HX_RELEASE(m_pHTTP->m_pRequest);
     m_pHTTP->m_pRequest = m_pRequest;
     m_pHTTP->m_pRequest->AddRef();
     m_pHTTP->http_post((char*)pMsg->url(), m_content_len,


_______________________________________________
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