axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Susantha Kumara" <susan...@opensource.lk>
Subject Memory Leaks in processException methods of Exception classes
Date Sun, 27 Jun 2004 05:08:42 GMT
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
 

Mime
View raw message