From: Martin Quinson Date: Fri, 26 Feb 2016 10:08:07 +0000 (+0100) Subject: oups X-Git-Tag: v3_13~664 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4f9095b90297e111f30558615fde2567f5710e99 oups --- diff --git a/src/surf/surf_interface.cpp b/src/surf/surf_interface.cpp index 50184e6091..6f02607a9d 100644 --- a/src/surf/surf_interface.cpp +++ b/src/surf/surf_interface.cpp @@ -4,7 +4,7 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#include "portable.h" +#include "src/portable.h" #include "surf_private.h" #include "surf_interface.hpp" #include "network_interface.hpp" @@ -266,12 +266,6 @@ int find_model_description(s_surf_model_description_t * table, return -1; } -static XBT_INLINE void routing_asr_prop_free(void *p) -{ - //xbt_dict_t elm = (xbt_dict_t) p; - //xbt_dict_free(&elm); FIXME: leaking in some case? That's a sometimes double-free with AsCluster::~AsCluster -} - static XBT_INLINE void surf_storage_free(void *r) { delete static_cast(r); @@ -318,7 +312,7 @@ void surf_init(int *argc, char **argv) sg_host_init(); XBT_DEBUG("Add routing levels"); - ROUTING_PROP_ASR_LEVEL = xbt_lib_add_level(as_router_lib,routing_asr_prop_free); + ROUTING_PROP_ASR_LEVEL = xbt_lib_add_level(as_router_lib, NULL); XBT_DEBUG("Add SURF levels"); simgrid::surf::HostImpl::classInit();