mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix potential memory leak in XPath evaluation results
This commit is contained in:
1
NEWS
1
NEWS
@@ -10,6 +10,7 @@ PHP NEWS
|
||||
|
||||
- DOM:
|
||||
. Add some missing ZPP checks. (nielsdos)
|
||||
. Fix potential memory leak in XPath evaluation results. (nielsdos)
|
||||
|
||||
- FPM:
|
||||
. Fixed GH-11086 (FPM: config test runs twice in daemonised mode).
|
||||
|
||||
@@ -125,8 +125,11 @@ static void dom_xpath_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs,
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
ZVAL_STRING(&fci.params[i], (char *)xmlXPathCastToString(obj));
|
||||
default: {
|
||||
str = (char *)xmlXPathCastToString(obj);
|
||||
ZVAL_STRING(&fci.params[i], str);
|
||||
xmlFree(str);
|
||||
}
|
||||
}
|
||||
xmlXPathFreeObject(obj);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user