From fd2f542a55e3e3e7ec3fd791dafd12e053d15434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Delanoy?= Date: Thu, 20 Aug 2009 01:33:10 +0200 Subject: wrc: Fix a memory leak on output file name (Smatch) --- tools/wrc/wrc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/wrc/wrc.c b/tools/wrc/wrc.c index 7dd91fb..c50e188 100644 --- a/tools/wrc/wrc.c +++ b/tools/wrc/wrc.c @@ -539,6 +539,7 @@ int main(int argc,char *argv[]) chat("Writing .res-file\n"); write_resfile(output_name, resource_top); + free(output_name); output_name = NULL; return 0; -- 1.6.4