mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Fixed incorrect efree()
This commit is contained in:
parent
a21e6d6ed9
commit
78e4f03c22
@ -712,15 +712,8 @@ PHP_METHOD(Phar, webPhar)
|
|||||||
switch (Z_TYPE(retval)) {
|
switch (Z_TYPE(retval)) {
|
||||||
case IS_STRING:
|
case IS_STRING:
|
||||||
efree(entry);
|
efree(entry);
|
||||||
|
entry = estrndup(Z_STRVAL_P(fci.retval), Z_STRLEN_P(fci.retval));
|
||||||
if (fci.retval != &retval) {
|
entry_len = Z_STRLEN_P(fci.retval);
|
||||||
entry = estrndup(Z_STRVAL_P(fci.retval), Z_STRLEN_P(fci.retval));
|
|
||||||
entry_len = Z_STRLEN_P(fci.retval);
|
|
||||||
} else {
|
|
||||||
entry = Z_STRVAL(retval);
|
|
||||||
entry_len = Z_STRLEN(retval);
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case IS_TRUE:
|
case IS_TRUE:
|
||||||
case IS_FALSE:
|
case IS_FALSE:
|
||||||
|
Loading…
Reference in New Issue
Block a user