mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
plug leaks that in the previous patch
This commit is contained in:
parent
c7101ba6d2
commit
557b583434
@ -261,6 +261,7 @@ char *_xmlreader_get_valid_file_path(char *source, char *resolved_path, int reso
|
||||
|
||||
if ((uri->scheme == NULL || isFileUri)) {
|
||||
if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path TSRMLS_CC)) {
|
||||
xmlFreeURI(uri);
|
||||
return NULL;
|
||||
}
|
||||
file_dest = resolved_path;
|
||||
|
@ -273,6 +273,7 @@ char *_xmlwriter_get_valid_file_path(char *source, char *resolved_path, int reso
|
||||
|
||||
if ((uri->scheme == NULL || isFileUri)) {
|
||||
if (!VCWD_REALPATH(source, resolved_path) && !expand_filepath(source, resolved_path TSRMLS_CC)) {
|
||||
xmlFreeURI(uri);
|
||||
return NULL;
|
||||
}
|
||||
file_dest = resolved_path;
|
||||
|
Loading…
Reference in New Issue
Block a user