From d00347afe6366ce002349f958f64a41a8cfe93b0 Mon Sep 17 00:00:00 2001 From: Dong Jinguang Date: Wed, 3 Jan 2018 17:54:05 +0800 Subject: [PATCH] Fixed potential risk of wild pointer --- utils/tinycap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/tinycap.c b/utils/tinycap.c index 39c6f57..9f8dacd 100644 --- a/utils/tinycap.c +++ b/utils/tinycap.c @@ -168,6 +168,7 @@ int main(int argc, char **argv) break; default: fprintf(stderr, "%u bits is not supported.\n", bits); + fclose(file); return 1; }