about summary refs log tree commit diff homepage
path: root/tools
diff options
context:
space:
mode:
authorOscar Deits <odeits@vidder.com>2017-08-27 23:19:29 -0400
committerOscar Deits <odeits@vidder.com>2017-08-27 23:19:29 -0400
commitb5929722363993bf0ad2a56d66176606cc742bc4 (patch)
treeb6dce38dd98d681e97d08d0b42adff078ccf7215 /tools
parentd19500eb93083c8cc6bb72bcb54414015830cacb (diff)
downloadklee-b5929722363993bf0ad2a56d66176606cc742bc4.tar.gz
Remove unnecessary null pointer checks
Fixes klee/klee#717

delete on null pointer is always safe.
Diffstat (limited to 'tools')
-rw-r--r--tools/klee/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp
index 05ba54d3..f1def38c 100644
--- a/tools/klee/main.cpp
+++ b/tools/klee/main.cpp
@@ -333,8 +333,8 @@ KleeHandler::KleeHandler(int argc, char **argv)
 }
 
 KleeHandler::~KleeHandler() {
-  if (m_pathWriter) delete m_pathWriter;
-  if (m_symPathWriter) delete m_symPathWriter;
+  delete m_pathWriter;
+  delete m_symPathWriter;
   fclose(klee_warning_file);
   fclose(klee_message_file);
   delete m_infoFile;