[xml] Memory leak detected when create xmlParserCtxt by xmlCreatePushParserCtxt
- From: "Jarvis Luo" <jarvis luo cn gmail com>
- To: xml gnome org
- Subject: [xml] Memory leak detected when create xmlParserCtxt by xmlCreatePushParserCtxt
- Date: Sat, 17 Nov 2007 12:48:15 +0800
(At first,I apologize for my ragged English.It is lucky that someone
can dope out what did I describe.)
Hi everyone
I need parse xml content from socket buffer,so I must use pushable
xmlParserCtxt utilities.I scratch my code by imitating the demo in
parse4.c,when I run my program,anything seem to go well.But I use
valgrind look into memory situation,memory leak reporting
got.Environment detail as follow.
OS: Linux pmsdemo 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005
i686 i686 i386 GNU/Linux
libxml2: libxml2-2.6.27
snippet of valgrind reporting:
==3121== 18,049 (440 direct, 17,609 indirect) bytes in 1 blocks are
definitely lost in loss record 120 of 128
==3121== at 0x40046F2: malloc (vg_replace_malloc.c:149)
==3121== by 0x40E70C8: xmlNewParserCtxt (parserInternals.c:1762)
==3121== by 0x40F6227: xmlCreatePushParserCtxt (parser.c:10650)
==3121== by 0x804F09B: child_proc (dit_soap_server.c:264)
Did I miss something?
Thanks any replay.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]