mirror of
https://github.com/ceph/ceph
synced 2025-01-20 01:51:34 +00:00
rgw: fix xml parser internal structure leak
This commit is contained in:
parent
a72348ea93
commit
5e7393352c
@ -216,7 +216,11 @@ bool RGWXMLParser::parse(const char *_buf, int len, int done)
|
||||
fprintf(stderr, "Parse error at line %d:\n%s\n",
|
||||
(int)XML_GetCurrentLineNumber(p),
|
||||
XML_ErrorString(XML_GetErrorCode(p)));
|
||||
return false;
|
||||
success = false;
|
||||
}
|
||||
|
||||
if (done || !success)
|
||||
XML_ParserFree(p);
|
||||
|
||||
return success;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user