You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by cb...@apache.org on 2005/07/08 02:54:33 UTC
cvs commit: ws-axis/c/src/soap/xsd Int.cpp
cblecken 2005/07/07 17:54:33
Modified: c/src/soap/xsd Int.cpp
Log:
Make memory deallocation consistent with other base types.
(not here but in the stub/client program)
Submitted by: C.Blecken
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.15 +3 -1 ws-axis/c/src/soap/xsd/Int.cpp
Index: Int.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/soap/xsd/Int.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- Int.cpp 1 Jun 2005 14:22:56 -0000 1.14
+++ Int.cpp 8 Jul 2005 00:54:33 -0000 1.15
@@ -68,7 +68,9 @@
xsd__int * value = new xsd__int;
*value = static_cast<xsd__int> (*returnValue);
- delete returnValue; // Samissa - need to clean this memory
+ // cb 07/07/05 : delete here is inconsistent with other data types
+ // (which don't do it here), but maybe a good idea
+ // delete returnValue; // Samissa - need to clean this memory
return value;
}