From 20d9cf19d7d5d1989239a50790c481b0cb1604da Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 6 Mar 2014 14:11:59 -0800 Subject: Don't leak file descriptor in the error case Signed-off-by: Dirk Hohndel --- uemis-downloader.c | 1 + 1 file changed, 1 insertion(+) (limited to 'uemis-downloader.c') diff --git a/uemis-downloader.c b/uemis-downloader.c index b7d877823..66deffa46 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -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; } -- cgit v1.2.3-70-g09d2