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;
|
*buffer = (void*)boptr->bytes;
|
||||||
*size = boptr->size;
|
*size = boptr->size;
|
||||||
}
|
}
|
||||||
|
/* we no longer require the struct itself since all we
|
||||||
|
* wanted was the data inside it
|
||||||
|
*/
|
||||||
|
free(boptr);
|
||||||
free(key);
|
free(key);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
@ -146,7 +149,10 @@ ompi_modex_recv_string(const char* key,
|
|||||||
*buffer = boptr->bytes;
|
*buffer = boptr->bytes;
|
||||||
*size = boptr->size;
|
*size = boptr->size;
|
||||||
}
|
}
|
||||||
|
/* we no longer require the struct itself since all we
|
||||||
|
* wanted was the data inside it
|
||||||
|
*/
|
||||||
|
free(boptr);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user