diff options
author | Dong Jinguang <dongjinguang@huawei.com> | 2018-01-03 17:54:05 +0800 |
---|---|---|
committer | Dong Jinguang <dongjinguang@huawei.com> | 2018-01-03 17:54:05 +0800 |
commit | 18bf2c30e96867184f6a68db63e1a3cc783a4f27 (patch) | |
tree | 23e3c26ffc47620eb7acef1db60dcde0acc8edff /utils | |
parent | 162f0b7f2543f6a8c0bf659d4aab2cb89e15fe12 (diff) |
Fixed potential risk of wild pointer
Diffstat (limited to 'utils')
-rw-r--r-- | utils/tinycap.c | 1 |
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; } |