summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-06 14:11:59 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-06 14:11:59 -0800
commit20d9cf19d7d5d1989239a50790c481b0cb1604da (patch)
treeb6662d80f60391b0a5847c98d91ab1a6a0236c82
parent4e94da46fdbb140e18a22b3af3f59e989d779b80 (diff)
downloadsubsurface-20d9cf19d7d5d1989239a50790c481b0cb1604da.tar.gz
Don't leak file descriptor in the error case
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--uemis-downloader.c1
1 files changed, 1 insertions, 0 deletions
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;
}