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