You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Susantha Kumara <su...@opensource.lk> on 2004/06/27 07:08:42 UTC

Memory Leaks in processException methods of Exception classes

Hi Damitha,
 
I found that in all Exception classes the following method has a memory
leak. Please have a look at it.
 
void AxisXXXXXXException::processException(const int iExceptionCode,
char* pcMessage)
{
    AxisString sMessage = strdup(pcMessage);  <--------------- memory
leak
    ..
}
 
Also I suggest that we change these method to following signature,
 
void AxisXXXXXXException::processException(const int iExceptionCode,
const char* pcMessage)
 
and then change the constructors too accordingly.
 
Thanks,
 
Susantha Kumara
Lanka Software Foundation
Office : +94112591785
Mobile : +94777420453