Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
plug leak of file unlink
[simgrid.git] / src / surf / HostImpl.cpp
index 2cb9e02..fa047d2 100644 (file)
@@ -152,9 +152,6 @@ int HostImpl::unlink(surf_file_t fd)
       // Remove the file from storage
       st->content_->erase(fd->name);
 
-      xbt_free(fd->name);
-      xbt_free(fd->mount);
-      xbt_free(fd);
       return 0;
     }
   }