[xml] How can I use xmlMemFree() instead of free() ?



Hi,,
 
Now I use xmlFree in my application.
And I found xmlFree is mapped to xmlMemFree() or free() in globals.c
 
I compiled libxml2 library as following.
./configure --with-threads
make
make install
 
Then I copied the libxml2.so.2.6.31 from /usr/local/lib to /usr/lib.
And I tracked the operation of xmlFree in my program with GDB.
And I found xmlFree is mapped to free() in my case.
 
So, I added
#define DEBUG_MEMORY_LOCATION 1 in /include/libxml/globals.h
 
Then I could see xmlFree is mapped to xmlMemFree() instead of free().
But I don't think this is not proper methodology to use xmlMemFree() instead of free().
Can I ask what is right way to use xmlMemFree()?
Please give me some recommendations.
 
 
                                     Jason,


강력한 폴더 공유 기능과 무료 문자 메시지, 오프라인 쪽지 보내기 기능까지! MSN 메신저의 차세대 버전, Windows Live Messenger!


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]