--- embedaddon/php/ext/xmlwriter/php_xmlwriter.c 2012/05/29 12:34:45 1.1.1.2 +++ embedaddon/php/ext/xmlwriter/php_xmlwriter.c 2013/07/22 01:32:10 1.1.1.3 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2012 The PHP Group | + | Copyright (c) 1997-2013 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_xmlwriter.c,v 1.1.1.2 2012/05/29 12:34:45 misho Exp $ */ +/* $Id: php_xmlwriter.c,v 1.1.1.3 2013/07/22 01:32:10 misho Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -614,6 +614,7 @@ static char *_xmlwriter_get_valid_file_path(char *sour /* absolute file uris - libxml only supports localhost or empty host */ if (strncasecmp(source, "file:///", 8) == 0) { if (source[sizeof("file:///") - 1] == '\0') { + xmlFreeURI(uri); return NULL; } isFileUri = 1; @@ -624,6 +625,7 @@ static char *_xmlwriter_get_valid_file_path(char *sour #endif } else if (strncasecmp(source, "file://localhost/",17) == 0) { if (source[sizeof("file://localhost/") - 1] == '\0') { + xmlFreeURI(uri); return NULL; }