From cae9591c2f493382bd7f1bfd764413fafdf4fa15 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 14 Oct 2013 00:05:07 -0400 Subject: [PATCH] Missed a spot for closing file handle fd in function get_sha1. --- tools/retrolaunch/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/retrolaunch/main.c b/tools/retrolaunch/main.c index 105d28a1af..12ef76166f 100644 --- a/tools/retrolaunch/main.c +++ b/tools/retrolaunch/main.c @@ -126,6 +126,7 @@ static int get_sha1(const char *path, char *result) } if (!SHA1Result(&sha)) { + close(fd); return -1; }