[PATCH] wrc: free (type) to avoid leaks (Coverity)
Marcus Meissner
marcus at jet.franken.de
Sat Jan 31 15:14:57 CST 2009
Hi,
CID 334, type is leaking in one path.
Ciao, Marcus
---
tools/wrc/readres.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/tools/wrc/readres.c b/tools/wrc/readres.c
index e3a4db7..f7aaba8 100644
--- a/tools/wrc/readres.c
+++ b/tools/wrc/readres.c
@@ -292,7 +292,10 @@ static resource_t *read_res32(FILE *fp)
usrres = new_user(type, NULL, new_int(memopt));
}
else
+ {
+ free (type);
usrres = NULL;
+ }
rsc = new_resource(res_type,
usrres,
memopt,
--
1.5.6
More information about the wine-patches
mailing list