Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Added an #ifndef/#endif around the #define MIN so that things
[simgrid.git] / src / gras / Msg / msg.c
index a27a327..1ac3636 100644 (file)
@@ -13,7 +13,9 @@
 #include "gras/DataDesc/datadesc_interface.h"
 #include "gras/Transport/transport_interface.h" /* gras_select */
 
+#ifndef MIN
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
+#endif
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(gras_msg,gras,"High level messaging");
 
@@ -45,7 +47,8 @@ static void gras_msg_procdata_free(void *data) {
    xbt_dynar_free(&( res->msg_queue ));
    xbt_dynar_free(&( res->cbl_list ));
    xbt_dynar_free(&( res->timers ));
-   
+
+   free(res->name);
    free(res);
 }