Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
This is already destroyed by Storage::~Storage.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 5 Dec 2013 14:49:45 +0000 (15:49 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 5 Dec 2013 21:20:04 +0000 (22:20 +0100)
Fixes double-free error.

src/surf/storage_n11.cpp

index e8388de..6647d69 100644 (file)
@@ -26,10 +26,6 @@ static XBT_INLINE void surf_storage_resource_free(void *r)
 {
   // specific to storage
   StoragePtr storage = dynamic_cast<StoragePtr>(static_cast<ResourcePtr>(r));
-  xbt_dict_free(&storage->p_content);
-  xbt_dynar_free(&storage->p_writeActions);
-  free(storage->p_typeId);
-  free(storage->p_contentType);
   // generic resource
   delete storage;
 }