]> granicus.if.org Git - libexpat/commit
Don't free a partially allocated element type twice (issue #3)
authorRhodri James <rhodri@kynesim.co.uk>
Tue, 31 Jan 2017 15:37:36 +0000 (15:37 +0000)
committerSebastian Pipping <sebastian@pipping.org>
Tue, 14 Feb 2017 22:45:21 +0000 (23:45 +0100)
commit7ae9c3d3af433cd4defe95234eae7dc8ed15637f
tree23eb33805ad3a99526980bba167b9f706e3638de
parent4499b07ad83ea29cdd06e95f59bfcff3ab68b75d
Don't free a partially allocated element type twice (issue #3)

If memory allocation fails for default attributes of an element type
while copying a DTD, the element type itself was being freed.
Unfortunately it's already stored in the DTD by this point, so is
freed again when the DTD is destroyed.
expat/lib/xmlparse.c