Cleanup minor memory leak
This commit was SVN r27736.
Этот коммит содержится в:
родитель
a1754dfe31
Коммит
ec2f6abb69
@ -82,7 +82,10 @@ ompi_modex_recv(const mca_base_component_t *component,
|
||||
*buffer = (void*)boptr->bytes;
|
||||
*size = boptr->size;
|
||||
}
|
||||
|
||||
/* we no longer require the struct itself since all we
|
||||
* wanted was the data inside it
|
||||
*/
|
||||
free(boptr);
|
||||
free(key);
|
||||
return rc;
|
||||
}
|
||||
@ -146,7 +149,10 @@ ompi_modex_recv_string(const char* key,
|
||||
*buffer = boptr->bytes;
|
||||
*size = boptr->size;
|
||||
}
|
||||
|
||||
/* we no longer require the struct itself since all we
|
||||
* wanted was the data inside it
|
||||
*/
|
||||
free(boptr);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user