diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-03-06 14:11:59 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-06 14:11:59 -0800 |
commit | 20d9cf19d7d5d1989239a50790c481b0cb1604da (patch) | |
tree | b6662d80f60391b0a5847c98d91ab1a6a0236c82 /uemis-downloader.c | |
parent | 4e94da46fdbb140e18a22b3af3f59e989d779b80 (diff) | |
download | subsurface-20d9cf19d7d5d1989239a50790c481b0cb1604da.tar.gz |
Don't leak file descriptor in the error case
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r-- | uemis-downloader.c | 1 |
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; } |