Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Hopefully fix the strdup/_strdup issue
[simgrid.git] / include / xbt / sysdep.h
index 33b10eb4493980dea960aaa102bf48965b8efb4b..fae839c089a1737a4e6391f59c6b944bdb17a169 100644 (file)
@@ -142,7 +142,7 @@ void *xbt_realloc(void *p, size_t s)
 
 /** @brief like free
     @hideinitializer */
-#define xbt_free free           /*nothing specific to do here. A poor valgrind replacement? */
+#define xbt_free(p) free(p) /*nothing specific to do here. A poor valgrind replacement? */
 
 /** @brief like free, but you can be sure that it is a function  */
 XBT_PUBLIC(void) xbt_free_f(void *p);