Huw Davies : inetcomm: Fix memory leak.

Alexandre Julliard julliard at winehq.org
Mon Dec 7 10:26:13 CST 2009


Module: wine
Branch: master
Commit: bf93519a395172c967c78467e2bf2437d35b59d0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bf93519a395172c967c78467e2bf2437d35b59d0

Author: Huw Davies <huw at codeweavers.com>
Date:   Sun Dec  6 11:38:32 2009 +0000

inetcomm: Fix memory leak.

Found by Valgrind.

---

 dlls/inetcomm/mimeole.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/inetcomm/mimeole.c b/dlls/inetcomm/mimeole.c
index 871ffa5..992949a 100644
--- a/dlls/inetcomm/mimeole.c
+++ b/dlls/inetcomm/mimeole.c
@@ -1610,6 +1610,7 @@ static HRESULT create_body_offset_list(IStream *stm, const char *boundary, struc
     } while(1);
 
 end:
+    HeapFree(GetProcessHeap(), 0, nl_boundary);
     HeapFree(GetProcessHeap(), 0, buf);
     return hr;
 }




More information about the wine-cvs mailing list