From: erickson Date: Mon, 20 Mar 2006 17:06:33 +0000 (+0000) Subject: destroying parser on parse error X-Git-Url: https://git.evergreen-ils.org/?p=Evergreen.git;a=commitdiff_plain;h=2980963f8efeeb27bfacc748f3b1f36b9fb2d4b0 destroying parser on parse error git-svn-id: svn://svn.open-ils.org/ILS/trunk@3397 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/apachemods/mod_xmlent.c b/Open-ILS/src/apachemods/mod_xmlent.c index 1e3fa015b5..b9570be304 100644 --- a/Open-ILS/src/apachemods/mod_xmlent.c +++ b/Open-ILS/src/apachemods/mod_xmlent.c @@ -235,10 +235,12 @@ static int xmlEntHandler( ap_filter_t *f, apr_bucket_brigade *brigade ) { if ( XML_Parse(ctx->parser, data, len, 0) == XML_STATUS_ERROR ) { /* log and die on XML errors */ - ap_log_rerror( APLOG_MARK, APLOG_ERR, 0, f->r, "%s at line %d\n", + ap_log_rerror( APLOG_MARK, APLOG_ERR, 0, f->r, "XMLENT XML Parse Error: %s at line %d\n", XML_ErrorString(XML_GetErrorCode(ctx->parser)), XML_GetCurrentLineNumber(ctx->parser)); + XML_ParserFree(parser); + parser = NULL; return HTTP_INTERNAL_SERVER_ERROR; } }