diff options
author | Nick ODell <nickodell@gmail.com> | 2013-08-06 17:15:09 -0600 |
---|---|---|
committer | Nick ODell <nickodell@gmail.com> | 2013-08-06 18:11:13 -0600 |
commit | 34f531553a6ec39ba55282dbf5b29e9a401d0880 (patch) | |
tree | 84b3a1f7e70d555c272cdbee378ab55c7dba7079 /testing | |
parent | eb546db56b7d30c970173d4a4d02672d3dc24a3a (diff) |
Fix bug where file handle wasn't closed on success
Diffstat (limited to 'testing')
-rw-r--r-- | testing/nTox.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testing/nTox.c b/testing/nTox.c index 63d0c32e..ecdba1e3 100644 --- a/testing/nTox.c +++ b/testing/nTox.c | |||
@@ -410,6 +410,8 @@ void load_key(char *path) | |||
410 | } | 410 | } |
411 | } | 411 | } |
412 | 412 | ||
413 | if(fclose(data_file) < 0) | ||
414 | perror("[!] fclose failed"); | ||
413 | return; | 415 | return; |
414 | 416 | ||
415 | FILE_ERROR: | 417 | FILE_ERROR: |