Don't leak file descriptor in the error case
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4e94da46fd
commit
20d9cf19d7
@ -564,6 +564,7 @@ static bool uemis_get_answer(const char *path, char *request, int n_param_in,
|
||||
#endif
|
||||
return found_answer;
|
||||
fs_error:
|
||||
close (ans_file);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user