mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue