diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2004-04-29 17:14:25 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2004-04-29 17:14:25 +0000 |
commit | e2161a699bbd1b58fa90eb43fc94637cbbc29bc8 (patch) | |
tree | 64c8122a9b5c9bfb8c4be43c167ea6418125a5e4 /xmlsave.c | |
parent | 9ea6231ecef04c848b688355b8f7532dd5e4c6f8 (diff) | |
download | libxml2-e2161a699bbd1b58fa90eb43fc94637cbbc29bc8.tar.gz |
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
Diffstat (limited to 'xmlsave.c')
-rw-r--r-- | xmlsave.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -179,6 +179,8 @@ xmlFreeSaveCtxt(xmlSaveCtxtPtr ctxt) if (ctxt == NULL) return; if (ctxt->encoding != NULL) xmlFree((char *) ctxt->encoding); + if (ctxt->buf != NULL) + xmlOutputBufferClose(ctxt->buf); xmlFree(ctxt); } |