Permalink
Browse files

detection.c: Bugfix. Added a 'closedir' that had been ommitted, remov…

…ed the 'free' that had become invalid as a result.
  • Loading branch information...
1 parent 1a98275 commit 0250622b3eac77bb9387bfc33a99d5f9f0e61446 @TacoSteemers committed Oct 12, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 code/detection.c
View
@@ -53,7 +53,8 @@ void doCheck(void)
free(partitions[i]);
}
} while (entry != NULL);
- free(directory);
+ closedir(directory);
+ /*free(directory);*/
free(entry);
finalizeRun();

0 comments on commit 0250622

Please sign in to comment.