plug leaks that in the previous patch

This commit is contained in:
Nuno Lopes 2006-09-16 18:18:55 +00:00
parent c7101ba6d2
commit 557b583434
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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;