You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by renganathan <re...@deccanetworld.com> on 2001/11/21 06:23:05 UTC
Is this another solution to transcoded memory problem...?
Dear All,
I am not gettting any errors when I try to solve the problem of freeing memory in this fashion.
My present doubt is whether the transcoded (twice) memory below, will be deleted by itself or not...?
My code is:
char* TempAttrvalue ;
int L = strlen( map.getNodeValue().transcode()); // map is a DOM_Node
TempAttrvalue = ( char*) malloc(L+1);
XMLString::copyString(TempAttrvalue,map.getNodeValue().transcode());
XMLString::trim(TempAttrvalue);
---
---
---
free(TempAttrvalue);
Thanks for any help.
Regards
Rengan
*********************************************
Read DIGITALLY & Save TREES !!
*********************************************