diff options
author | Philipp Kloke <philipp.kloke@web.de> | 2013-03-31 12:20:10 +0200 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2013-04-01 02:17:46 +0400 |
commit | c7b53ffe1f16da98f1711529dc3ec1cbdba6ab6e (patch) | |
tree | 6e7e57d2a058cd1bb61f4325bbf302067e8f21c0 | |
parent | efe66c65d183417cfc5a8ea6ae344b69fa29d897 (diff) | |
download | nasm-c7b53ffe1f16da98f1711529dc3ec1cbdba6ab6e.tar.gz nasm-c7b53ffe1f16da98f1711529dc3ec1cbdba6ab6e.tar.bz2 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>
-rw-r--r-- | rdoff/rdlib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rdoff/rdlib.c b/rdoff/rdlib.c index 038b6fc..57ede6a 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; } } |