aboutsummaryrefslogtreecommitdiffstats
path: root/rdoff
diff options
context:
space:
mode:
authorPhilipp Kloke <philipp.kloke@web.de>2013-03-31 12:20:10 +0200
committerCyrill Gorcunov <gorcunov@gmail.com>2013-04-01 02:17:46 +0400
commitc7b53ffe1f16da98f1711529dc3ec1cbdba6ab6e (patch)
tree6e7e57d2a058cd1bb61f4325bbf302067e8f21c0 /rdoff
parentefe66c65d183417cfc5a8ea6ae344b69fa29d897 (diff)
downloadnasm-c7b53ffe1f16da98f1711529dc3ec1cbdba6ab6e.tar.gz
nasm-c7b53ffe1f16da98f1711529dc3ec1cbdba6ab6e.tar.xz
nasm-c7b53ffe1f16da98f1711529dc3ec1cbdba6ab6e.zip
Fixed two more resource leaks in rdoff/rdlib.c
Signed-off-by: Philipp Kloke <philipp.kloke@web.de> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'rdoff')
-rw-r--r--rdoff/rdlib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rdoff/rdlib.c b/rdoff/rdlib.c
index 038b6fc4..57ede6a6 100644
--- a/rdoff/rdlib.c
+++ b/rdoff/rdlib.c
@@ -99,8 +99,10 @@ int rdl_verify(const char *filename)
fread(buf, 6, 1, fp);
buf[6] = 0;
if (strncmp(buf, "RDOFF", 5)) {
+ fclose(fp);
return rdl_error = lastresult = 2;
} else if (buf[5] != '2') {
+ fclose(fp);
return rdl_error = lastresult = 3;
}
}