Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git] / src / surf / HostImpl.cpp
index 81faf95..85a859b 100644 (file)
@@ -161,7 +161,6 @@ void HostImpl::getAttachedStorageList(std::vector<const char*>* storages)
 
 Action* HostImpl::open(const char* fullpath)
 {
-
   simgrid::surf::Storage* st = nullptr;
   size_t longest_prefix_length = 0;
   std::string path;
@@ -289,7 +288,7 @@ int HostImpl::fileMove(surf_file_t fd, const char* fullpath)
     std::map<std::string, sg_size_t*>* content = findStorageOnMountList(fd->mount)->content_;
     if (content->find(fd->name) != content->end()) { // src file exists
       sg_size_t* psize     = content->at(std::string(fd->name));
-      sg_size_t* new_psize = xbt_new(sg_size_t, 1);
+      sg_size_t* new_psize = new sg_size_t;
       *new_psize           = *psize;
       delete psize;
       content->erase(fd->name);