mirror of
https://github.com/php/php-src.git
synced 2025-01-22 03:34:19 +08:00
MFH: return NULL in case of error
This commit is contained in:
parent
aa40595644
commit
8ca3826a28
@ -1115,6 +1115,10 @@ PHPAPI char *php_pcre_replace(char *regex, int regex_len,
|
||||
}
|
||||
} else {
|
||||
pcre_handle_exec_error(count TSRMLS_CC);
|
||||
if (result) {
|
||||
efree(result);
|
||||
result = NULL;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user