]> granicus.if.org Git - php/commitdiff
Forgot about this one
authorMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 6 Oct 2003 01:04:49 +0000 (01:04 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 6 Oct 2003 01:04:49 +0000 (01:04 +0000)
ext/simplexml/simplexml.c

index 8b3980f596e63776b7386a235ac8dee6f9f5e7bc..7316ad9ebc459b50f1479fea4e14a8286b8eea13 100644 (file)
@@ -585,6 +585,7 @@ simplexml_ce_schema_validate(INTERNAL_FUNCTION_PARAMETERS, int type)
 
        if (vptr == NULL) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to create XML Schema validation context");
+               xmlSchemaFree(sptr);
                xmlSchemaFreeParserCtxt(parser);
                RETURN_FALSE;
        }