Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[s4u] Do not need to check for NULL before delet
[simgrid.git] / 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) {