=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: comdlg32: Free tmp_files after it' s used (coverity).

Alexandre Julliard julliard at winehq.org
Fri Oct 26 11:36:20 CDT 2012


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Thu Oct 25 21:29:16 2012 +0200

comdlg32: Free tmp_files after it's used (coverity).

---

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

diff --git a/dlls/comdlg32/itemdlg.c b/dlls/comdlg32/itemdlg.c
index a9cc6bf..e5c8927 100644
--- a/dlls/comdlg32/itemdlg.c
+++ b/dlls/comdlg32/itemdlg.c
@@ -417,6 +417,7 @@ static HRESULT on_default_action(FileDialogImpl *This)
     {
         UINT size_used;
         file_count = COMDLG32_SplitFileNames(tmp_files, len, &files, &size_used);
+        CoTaskMemFree(tmp_files);
     }
     if(!file_count) return E_FAIL;
 




More information about the wine-cvs mailing list