diff --git a/ChangeLog b/ChangeLog index 43ea9798..90fadfe0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri May 28 22:58:42 EDT 1999 Manish Vachharajani + + * tree.c: (xmlSaveFile) - removed double call of xmlContentDump. + Also freed allocated buffer. + Wed Apr 21 22:07:35 CEST 1999 * parser.[ch] tree.[ch] entities.[ch] valid.[ch] : removed the main diff --git a/tree.c b/tree.c index a89e56d6..a3b378a0 100644 --- a/tree.c +++ b/tree.c @@ -2778,8 +2778,6 @@ xmlSaveFile(const char *filename, xmlDocPtr cur) { } #endif - xmlDocContentDump(buf, cur); - #ifdef HAVE_ZLIB_H if (zoutput != NULL) { ret = gzwrite(zoutput, buf->content, sizeof(CHAR) * buf->use); @@ -2791,6 +2789,7 @@ xmlSaveFile(const char *filename, xmlDocPtr cur) { #ifdef HAVE_ZLIB_H } #endif + xmlBufferFree(buf); return(ret * sizeof(CHAR)); }