From 5a77ab53a4a037194f394ef90f484f490d487be1 Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Tue, 19 Jan 2016 12:54:11 +0100 Subject: [PATCH 1/1] [s4u] Do not need to check for NULL before delet This is already included. --- src/s4u/s4u_host.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/s4u/s4u_host.cpp b/src/s4u/s4u_host.cpp index a21b4d01ec..3842d674e9 100644 --- a/src/s4u/s4u_host.cpp +++ b/src/s4u/s4u_host.cpp @@ -42,8 +42,7 @@ Host::Host(const char* name) Host::~Host() { delete pimpl_cpu; - if (mounts != NULL) - delete mounts; + delete mounts; } Host *Host::by_name(std::string name) { -- 2.20.1