[PATCH] (resubmit) winegcc: free link_args (Coverity)
Marcus Meissner
marcus at jet.franken.de
Sat Oct 10 03:23:05 CDT 2009
Hi,
Coverity spotted we do not free link_args, so just free them.
(I know its a small cleanup issue, just to get this off my and
coveritys radar ;)
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 f81b7ea..43abb1e 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -865,7 +865,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