Don't leak file descriptor in the error case

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-03-06 14:11:59 -08:00
parent 4e94da46fd
commit 20d9cf19d7

View file

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