mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix potential memory leak in XPath evaluation results
This commit is contained in:
parent
db1f7b1286
commit
30c58aba0c
2 changed files with 6 additions and 2 deletions
1
NEWS
1
NEWS
|
@ -8,6 +8,7 @@ PHP NEWS
|
||||||
|
|
||||||
- DOM:
|
- DOM:
|
||||||
. Add some missing ZPP checks. (nielsdos)
|
. Add some missing ZPP checks. (nielsdos)
|
||||||
|
. Fix potential memory leak in XPath evaluation results. (nielsdos)
|
||||||
|
|
||||||
- Gettext:
|
- Gettext:
|
||||||
. Fixed sigabrt raised with dcgettext/dcngettext calls with gettext 0.22.5
|
. Fixed sigabrt raised with dcgettext/dcngettext calls with gettext 0.22.5
|
||||||
|
|
|
@ -125,8 +125,11 @@ static void dom_xpath_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default: {
|
||||||
ZVAL_STRING(&fci.params[i], (char *)xmlXPathCastToString(obj));
|
str = (char *)xmlXPathCastToString(obj);
|
||||||
|
ZVAL_STRING(&fci.params[i], str);
|
||||||
|
xmlFree(str);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
xmlXPathFreeObject(obj);
|
xmlXPathFreeObject(obj);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue