switch (errcode) {
case mismatch_error:
/* SG plugin return mismatch when in RL mode (and vice versa) */
- xbt_free(plug->name);
- xbt_free(plug);
+ free(plug->name);
+ free(plug);
break;
case no_error:
_gras_trp_plugins=xbt_dict_new();
#ifdef HAVE_WINSOCK2_H
- /* initialize the windows mecanism */
+ /* initialize the windows mechanism */
{
WORD wVersionRequested;
WSADATA wsaData;
plug->exit(plug);
} else if (plug->data) {
DEBUG1("Plugin %s lacks exit(). Free data anyway.",plug->name);
- xbt_free(plug->data);
+ free(plug->data);
}
- xbt_free(plug->name);
- xbt_free(plug);
+ free(plug->name);
+ free(plug);
}
}
sock->accepting?'y':'n');
if (errcode != no_error) {
- xbt_free(sock);
+ free(sock);
return errcode;
}
sock->accepting?'y':'n');
if (errcode != no_error) {
- xbt_free(sock);
+ free(sock);
return errcode;
}
/* free the memory */
if (sock->peer_name)
- xbt_free(sock->peer_name);
- xbt_free(sock);
+ free(sock->peer_name);
+ free(sock);
return;
}
}
exp_sofar,exp_size,msg_size,
gras_socket_peer_name(peer), gras_socket_peer_port(peer));
- xbt_free(chunk);
+ free(chunk);
return no_error;/* gras_socket_raw_exchange(peer,1,timeout,expSize,msgSize); */
}
exp_sofar,exp_size,msg_size,
gras_socket_peer_name(peer), gras_socket_peer_port(peer));
- xbt_free(chunk);
+ free(chunk);
return no_error;/* gras_socket_raw_exchange(peer,0,timeout,expSize,msgSize); */
}