commit | e2161a699bbd1b58fa90eb43fc94637cbbc29bc8 | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@src.gnome.org> | Thu Apr 29 17:14:25 2004 +0000 |
committer | Daniel Veillard <veillard@src.gnome.org> | Thu Apr 29 17:14:25 2004 +0000 |
tree | 64c8122a9b5c9bfb8c4be43c167ea6418125a5e4 | |
parent | 9ea6231ecef04c848b688355b8f7532dd5e4c6f8 [diff] [blame] |
fix a nasty problem with reading over the end fix a reported memory leak * xmlreader.c: fix a nasty problem with reading over the end * xmlsave.c: fix a reported memory leak apparently Daniel
diff --git a/xmlsave.c b/xmlsave.c index 1a60a31..6e31416 100644 --- a/xmlsave.c +++ b/xmlsave.c
@@ -179,6 +179,8 @@ if (ctxt == NULL) return; if (ctxt->encoding != NULL) xmlFree((char *) ctxt->encoding); + if (ctxt->buf != NULL) + xmlOutputBufferClose(ctxt->buf); xmlFree(ctxt); }