mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-13 17:57:12 +08:00
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>
This commit is contained in:
parent
efe66c65d1
commit
c7b53ffe1f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user