From: Moriyoshi Koizumi Date: Mon, 6 Oct 2003 01:04:49 +0000 (+0000) Subject: Forgot about this one X-Git-Tag: RELEASE_1_3b3~113 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=506136f9c638360a37f06db942637533bec3dd9f;p=php Forgot about this one --- diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index 8b3980f596..7316ad9ebc 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -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; }