[PATCH] winegcc: free link_args (Coverity)

Marcus Meissner marcus at jet.franken.de
Fri Sep 4 15:09:14 CDT 2009


Hi,

Coverity spotted we do not free link_args, so just free them.

Ciao, Marcus
---
 tools/winegcc/winegcc.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index ad4aeb7..4644dda 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -862,7 +862,10 @@ static void build(struct options* opts)
 
     spawn(opts->prefix, spec_args, 0);
     strarray_free (spec_args);
-    if (fake_module) return;  /* nothing else to do */
+    if (fake_module) {
+	strarray_free (link_args);
+	return;  /* nothing else to do */
+    }
 
     /* link everything together now */
     strarray_addall(link_args, get_translator(opts));
-- 
1.5.6



More information about the wine-patches mailing list