mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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
|
#endif
|
||||||
return found_answer;
|
return found_answer;
|
||||||
fs_error:
|
fs_error:
|
||||||
|
close (ans_file);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue