From: Arnaud Giersch Date: Thu, 5 Dec 2013 14:49:45 +0000 (+0100) Subject: This is already destroyed by Storage::~Storage. X-Git-Tag: v3_11_beta~188 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/feccca0f5ca8ba09deb3e2e5428ae7c4dbe6982e?hp=9b7342a771e25269c08f07d8a2fc086f71dcc3be This is already destroyed by Storage::~Storage. Fixes double-free error. --- diff --git a/src/surf/storage_n11.cpp b/src/surf/storage_n11.cpp index e8388de69d..6647d692e3 100644 --- a/src/surf/storage_n11.cpp +++ b/src/surf/storage_n11.cpp @@ -26,10 +26,6 @@ static XBT_INLINE void surf_storage_resource_free(void *r) { // specific to storage StoragePtr storage = dynamic_cast(static_cast(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; }