Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Yet another malloc without cast breaking on AIX
[simgrid.git] / src / gras / Transport / transport_plugin_tcp.c
index 438e009..6fa9cb5 100644 (file)
@@ -77,7 +77,7 @@ typedef struct {
 gras_error_t
 gras_trp_tcp_setup(gras_trp_plugin_t *plug) {
 
-  gras_trp_tcp_plug_data_t *data = malloc(sizeof(gras_trp_tcp_plug_data_t));
+  gras_trp_tcp_plug_data_t *data = gras_new(gras_trp_tcp_plug_data_t,1);
   if (!data)
     RAISE_MALLOC;