Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix memory leak on file_unlink.
[simgrid.git] / src / surf / workstation_interface.cpp
index ba19f66..f37bff3 100644 (file)
@@ -284,8 +284,8 @@ int Workstation::unlink(surf_file_t fd) {
       // Remove the file from storage
       xbt_dict_remove(st->p_content, fd->name);
 
-      free(fd->name);
-      free(fd->mount);
+      xbt_free(fd->name);
+      xbt_free(fd->mount);
       xbt_free(fd);
       return MSG_OK;
     }