From 51d7ec925e23e5cae78d81de4079fd6c0956dd5e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 13 Oct 2013 23:22:41 -0400 Subject: [PATCH] Fix a memory leak in function get_sha1 in retrolaunch/main.c. --- tools/retrolaunch/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/retrolaunch/main.c b/tools/retrolaunch/main.c index 19e9aff19c..105d28a1af 100644 --- a/tools/retrolaunch/main.c +++ b/tools/retrolaunch/main.c @@ -134,6 +134,7 @@ static int get_sha1(const char *path, char *result) sha.Message_Digest[1], sha.Message_Digest[2], sha.Message_Digest[3], sha.Message_Digest[4]); + close(fd); return 0; }