winegcc: fix memory leak (found by Smatch).

Lionel Debroux lionel_debroux at yahoo.fr
Sat Oct 27 12:27:35 CDT 2007


---
 tools/winegcc/winegcc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index 38a1f5e..412daf5 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -455,6 +455,7 @@ static void build(struct options* opts)
     if (opts->files->size == 1 && strendswith(opts->files->base[0], ".exe.so"))
     {
 	create_file(output_file, 0755, app_loader_template, opts->files->base[0]);
+	free(output_file);
 	return;
     }
 
-- 
1.5.3.2


--------------010009050209010709000909--



More information about the wine-patches mailing list