Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[s4u] Do not need to check for NULL before delet
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 19 Jan 2016 11:54:11 +0000 (12:54 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 19 Jan 2016 11:59:19 +0000 (12:59 +0100)
This is already included.

src/s4u/s4u_host.cpp

index a21b4d0..3842d67 100644 (file)
@@ -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) {