Marcus Meissner : wrc: Free type to avoid leaks (Coverity).
Alexandre Julliard
julliard at winehq.org
Mon Feb 2 09:01:19 CST 2009
Module: wine
Branch: master
Commit: fc3b99b90a91f97d706eda08db4931ddc4c31522
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fc3b99b90a91f97d706eda08db4931ddc4c31522
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Sat Jan 31 22:14:57 2009 +0100
wrc: Free type to avoid leaks (Coverity).
---
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,
More information about the wine-cvs
mailing list