From 1de2c7e20174f2dcd5b464048767b1b09670abf0 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 5 Dec 2013 17:18:45 +0100 Subject: [PATCH] Fields already initialized by constructor of the base class Storage. Fixes memory leak. --- src/surf/storage_n11.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/surf/storage_n11.cpp b/src/surf/storage_n11.cpp index 6647d692e3..600cca16b6 100644 --- a/src/surf/storage_n11.cpp +++ b/src/surf/storage_n11.cpp @@ -354,17 +354,9 @@ StorageN11Lmm::StorageN11Lmm(StorageModelPtr model, const char* name, xbt_dict_t StorageLmm(maxminSystem, bread, bwrite, bconnection, type_id, content_name, content_type, size) { XBT_DEBUG("Create resource with Bconnection '%f' Bread '%f' Bwrite '%f' and Size '%llu'", bconnection, bread, bwrite, size); - p_stateCurrent = SURF_RESOURCE_ON; - m_usedSize = 0; - m_size = 0; - - p_content = parseContent(content_name); - p_contentType = content_type; p_constraint = lmm_constraint_new(maxminSystem, this, bconnection); p_constraintRead = lmm_constraint_new(maxminSystem, this, bread); p_constraintWrite = lmm_constraint_new(maxminSystem, this, bwrite); - m_size = size; - p_typeId = xbt_strdup(type_id); } StorageActionPtr StorageN11Lmm::ls(const char* path) -- 2.20.1