From 2ad4f102f7b72046233c4de28c49dd1504af7890 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Wed, 7 Nov 2007 12:39:11 +1100 Subject: [PATCH] msxml3: Fix memory leak. --- dlls/msxml3/xmlelem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/msxml3/xmlelem.c b/dlls/msxml3/xmlelem.c index 787b13fcce8..5af43a77c91 100644 --- a/dlls/msxml3/xmlelem.c +++ b/dlls/msxml3/xmlelem.c @@ -340,6 +340,8 @@ static HRESULT WINAPI xmlelem_get_text(IXMLElement *iface, BSTR *p) content = xmlNodeGetContent(This->node); *p = bstr_from_xmlChar(content); TRACE("returning %s\n", debugstr_w(*p)); + + xmlFree(content); return S_OK; }