aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2018-01-03 06:14:24 -0500
committerGitHub <noreply@github.com>2018-01-03 06:14:24 -0500
commitb038ae7a5bb0c6744c6732ea6c3575adb0904220 (patch)
tree23e3c26ffc47620eb7acef1db60dcde0acc8edff
parent162f0b7f2543f6a8c0bf659d4aab2cb89e15fe12 (diff)
parent18bf2c30e96867184f6a68db63e1a3cc783a4f27 (diff)
Merge pull request #108 from dongjinguang-china/master
Fixed potential risk of wild pointer
-rw-r--r--utils/tinycap.c1
1 files changed, 1 insertions, 0 deletions
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;
}