aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/Support/FileHandling.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/FileHandling.cpp')
-rw-r--r--lib/Support/FileHandling.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Support/FileHandling.cpp b/lib/Support/FileHandling.cpp
index e5ead9f7..3e156f3c 100644
--- a/lib/Support/FileHandling.cpp
+++ b/lib/Support/FileHandling.cpp
@@ -31,8 +31,7 @@ llvm::raw_fd_ostream *klee_open_output_file(std::string &path,
f = new llvm::raw_fd_ostream(path.c_str(), error, llvm::sys::fs::F_Binary);
#endif
if (!error.empty()) {
- if (f)
- delete f;
+ delete f;
f = NULL;
}
return f;