X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0ef1caaf350ac106b3431e8afb4246aace1b44d2..814f0122ea0074dfb67398a79067c01267bc0b40:/src/mc/ModelChecker.cpp diff --git a/src/mc/ModelChecker.cpp b/src/mc/ModelChecker.cpp index 1c3b76af25..2adb8955a1 100644 --- a/src/mc/ModelChecker.cpp +++ b/src/mc/ModelChecker.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2008-2014. The SimGrid Team. +/* Copyright (c) 2008-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -32,11 +32,9 @@ const char* ModelChecker::get_host_name(const char* hostname) // Lookup the host name in the dictionary (or create it): xbt_dictelm_t elt = xbt_dict_get_elm_or_null(this->hostnames_, hostname); if (!elt) { - xbt_mheap_t heap = mmalloc_set_current_heap(mc_heap); xbt_dict_set(this->hostnames_, hostname, NULL, NULL); elt = xbt_dict_get_elm_or_null(this->hostnames_, hostname); assert(elt); - mmalloc_set_current_heap(heap); } return elt->key; }