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:
Philipp Kloke 2013-03-31 12:20:10 +02:00 committed by Cyrill Gorcunov
parent efe66c65d1
commit c7b53ffe1f

View file

@ -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;
}
}