1
1

- Fix bad memory referencing; added lam_list_item_t super to

opened_module_t
- Fix minor memory leak

This commit was SVN r612.
Этот коммит содержится в:
Jeff Squyres 2004-01-30 19:42:31 +00:00
родитель 1b6464d815
Коммит dae32f6e58

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

@ -13,6 +13,8 @@
typedef struct opened_module_t {
lam_list_item_t super;
mca_pml_base_module_t *om_module;
mca_pml_t *om_actions;
} opened_module_t;
@ -93,9 +95,9 @@ int mca_pml_base_select(mca_pml_t *selected)
/* Finalize all non-selected modules */
for (item = lam_list_get_first(&opened);
lam_list_get_end(&opened) != item;
item = lam_list_get_next(item)) {
for (item = lam_list_remove_first(&opened);
NULL != item;
item = lam_list_remove_first(&opened)) {
om = (opened_module_t *) item;
if (om->om_module != best_module) {
@ -113,6 +115,7 @@ int mca_pml_base_select(mca_pml_t *selected)
module->pmlm_version.mca_module_name);
}
}
LAM_FREE(om);
}
/* This base function closes, unloads, and removes from the