From: <bi...@us...> - 2009-08-10 20:53:48
|
Revision: 5080 http://oorexx.svn.sourceforge.net/oorexx/?rev=5080&view=rev Author: bigrixx Date: 2009-08-10 20:53:31 +0000 (Mon, 10 Aug 2009) Log Message: ----------- Fix potential rexxapi memory leak Modified Paths: -------------- main/branches/4.0beta/trunk/rexxapi/client/LocalRegistrationManager.cpp Modified: main/branches/4.0beta/trunk/rexxapi/client/LocalRegistrationManager.cpp =================================================================== --- main/branches/4.0beta/trunk/rexxapi/client/LocalRegistrationManager.cpp 2009-08-10 19:37:09 UTC (rev 5079) +++ main/branches/4.0beta/trunk/rexxapi/client/LocalRegistrationManager.cpp 2009-08-10 20:53:31 UTC (rev 5080) @@ -148,6 +148,8 @@ ClientMessage message(RegistrationManager, REGISTER_QUERY, type, name); message.send(); + // make sure everything is deleted + message.freeMessageData(); return mapReturnResult(message); } @@ -181,6 +183,8 @@ retData->retrieveUserData(userData); } + // make sure everything is deleted + message.freeMessageData(); return mapReturnResult(message); } else @@ -195,6 +199,8 @@ retData->retrieveUserData(userData); } + // make sure everything is deleted + message.freeMessageData(); return mapReturnResult(message); } } @@ -245,6 +251,8 @@ entryPoint = (REXXPFN)retData->entryPoint; } } + // make sure everything is deleted + message.freeMessageData(); return mapReturnResult(message); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |