diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-04-08 10:35:54 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-04-08 10:35:54 +0200 |
commit | 7e91fcd7f95e304aef4c76d1af20da3f40f10594 (patch) | |
tree | 6e1c6c004e55a29fd0a91f444bc367d6dba3a602 /ext/xmlreader/php_xmlreader.c | |
parent | a0df5f3b542abfd1078ac04e9a2081a1f71e3b11 (diff) | |
download | php-git-7e91fcd7f95e304aef4c76d1af20da3f40f10594.tar.gz |
Fix memory leak introduced by fixing bug #78221
We have to free the retrieved text content; to keep the code readable,
we extract a helper function to check for empty nodes. Unfortunately,
we cannot use xmlIsBlankNode(), because that also recognizes whitespace
only text content.
We also make sure to properly handle NULL returns from
xmlNodeGetContent().
Diffstat (limited to 'ext/xmlreader/php_xmlreader.c')
0 files changed, 0 insertions, 0 deletions