Safely close fp
This commit is contained in:
@ -652,7 +652,9 @@ int main (int argc, const char * argv[]) {
|
|||||||
pthread_join(prediction_thread, 0);
|
pthread_join(prediction_thread, 0);
|
||||||
alarm(0);
|
alarm(0);
|
||||||
|
|
||||||
|
if(fp){
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
}
|
||||||
nfc_close(pnd);
|
nfc_close(pnd);
|
||||||
|
|
||||||
if(!space){
|
if(!space){
|
||||||
|
Reference in New Issue
Block a user