From b5929722363993bf0ad2a56d66176606cc742bc4 Mon Sep 17 00:00:00 2001 From: Oscar Deits Date: Sun, 27 Aug 2017 23:19:29 -0400 Subject: Remove unnecessary null pointer checks Fixes klee/klee#717 delete on null pointer is always safe. --- tools/klee/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') 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; -- cgit 1.4.1