1
1

Accidentally allocating too much space -- only need to malloc enough

space for pointers to requests, not the actual requests.  Thank to Tim
for spotting this one.

This commit was SVN r3155.
Этот коммит содержится в:
Jeff Squyres 2004-10-15 10:19:01 +00:00
родитель 7f347651ae
Коммит 530ae63e74

Просмотреть файл

@ -183,7 +183,7 @@ mca_coll_basic_module_init(struct ompi_communicator_t *comm)
size = ompi_comm_size(comm);
}
data = malloc(sizeof(struct mca_coll_base_comm_t) +
(sizeof(ompi_request_t) * size * 2));
(sizeof(ompi_request_t *) * size * 2));
if (NULL == data) {
return NULL;