]> AND Public Git Repository - simgrid.git/blobdiff - src/surf/HostImpl.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
match new with delete in fact
[simgrid.git] / src / surf / HostImpl.cpp
index 81faf9574b9222df05cd6d9df4cc4f199aefc8fe..9e5602fd0c6c5b7cfbe1efe27e2d1282aba0cade 100644 (file)
@@ -289,7 +289,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);