Re: [xml] memory leak while parsing from memory buffer
- From: "Kevin P. Fleming" <kpfleming backtobasicsmgmt com>
- To: libxml2 <xml gnome org>
- Subject: Re: [xml] memory leak while parsing from memory buffer
- Date: Wed, 07 Apr 2004 13:39:04 -0700
Daniel Veillard wrote:
In my experience nothing replace running regression tests with memory
debug enabled before any commit to the code base. I don't know if you can
do that with perl, but it saved tremendous amount of time for libxml2 and
libxslt because the leak show up at the moment you try to commit the guilty
code to the CVS base, not weeks or months later.
And if you've never used valgrind to do this testing, do so ASAP :-)
It's amazingly useful as long as you can test on an x86 system, it found
problems for me that would have been nearly impossible to find any other
way (like referencing off the end of an allocated block of memory).
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]