axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henrik Nordberg (JIRA)" <>
Subject [jira] Created: (AXISCPP-707) Incorrect use of delete in AxisEngineException::processException()
Date Tue, 21 Jun 2005 18:57:31 GMT
Incorrect use of delete in AxisEngineException::processException()

         Key: AXISCPP-707
     Project: Axis-C++
        Type: Bug
  Components: Server - Engine  
    Versions: current (nightly)    
 Environment: Windows XP Pro, VS2003
    Reporter: Henrik Nordberg
    Priority: Critical

There is a delete statement in AxisEngineException::processException() which 
has a couple of problems:
First, if you were supposed to delete the pointer passed in, delete[] should 
be used (in C++). But, at least in the case of the exception thrown when a 
library fails to load, a constant character pointer is passed in (in this 
case "") -- see this line in XMLParserFactory::loadLib():

Why not just use a const std::string& instead of char*?

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message