winedump: Free debug string in case it was not freed in for-loop (Coverity)

André Hentschel nerv at dawncrow.de
Mon Nov 16 15:36:38 CST 2015


Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
CID 1195730

 tools/winedump/msc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/winedump/msc.c b/tools/winedump/msc.c
index 5890b29..e47d893 100644
--- a/tools/winedump/msc.c
+++ b/tools/winedump/msc.c
@@ -1378,6 +1378,9 @@ BOOL codeview_dump_symbols(const void* root, unsigned long size)
             dump_data((const void*)sym, sym->generic.len + 2, "  ");
         }
     }
+
+    free(curr_func);
+
     return TRUE;
 }
 
-- 
1.9.1




More information about the wine-patches mailing list