commit | a2ed67e85c386413979ab30bf5ec48dc19fcf99e | [log] [tgz] |
---|---|---|
author | Daniel Stone <daniels@collabora.com> | Fri Aug 24 16:32:42 2018 +0100 |
committer | Daniel Stone <daniels@collabora.com> | Wed Aug 29 09:56:39 2018 +0100 |
tree | 8549349b0e623a8524681a229f1437b8bfe78da3 | |
parent | f1d10fb6092c772a7c5ac192890a8d2bbe695a5f [diff] |
scanner: Plug two memory leaks Found with both ASan leak sanitizer and Valgrind. We were trivially leaking the enum name for every arg parsed by the scanner which had one. If libxml-based DTD validation was enabled, we would also leak the DTD itself, despite diligently freeing the document, context, etc. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>