commit | 5e60f5a2361a0ff73b710c0a28869ef0ec9b5092 | [log] [tgz] |
---|---|---|
author | Manish Vachharajani <mvachhar@src.gnome.org> | Sat May 29 03:04:30 1999 +0000 |
committer | Manish Vachharajani <mvachhar@src.gnome.org> | Sat May 29 03:04:30 1999 +0000 |
tree | 01f74f4f8681cce05c255577d9a61302fec54a38 | |
parent | 5099ae89ef661eea3e82dbf4b16bab9d7e9be2ff [diff] [blame] |
Prevent gnome-xml from writing two copies of the xml tree to the dest file in xmlSaveFile, and free the allocated buffer there
diff --git a/tree.c b/tree.c index a89e56d..a3b378a 100644 --- a/tree.c +++ b/tree.c
@@ -2778,8 +2778,6 @@ } #endif - xmlDocContentDump(buf, cur); - #ifdef HAVE_ZLIB_H if (zoutput != NULL) { ret = gzwrite(zoutput, buf->content, sizeof(CHAR) * buf->use); @@ -2791,6 +2789,7 @@ #ifdef HAVE_ZLIB_H } #endif + xmlBufferFree(buf); return(ret * sizeof(CHAR)); }