Skip to content

Commit ecf5c18

Browse files
committed
fix a memleak
opal_common_ucx open the opal_memory_base_framework but not close; Signed-off-by: wjjahah <2457791952@qq.com>
1 parent 4bbad5e commit ecf5c18

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

opal/mca/common/ucx/common_ucx.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ OPAL_DECLSPEC void opal_common_ucx_mca_deregister(void)
211211
}
212212
opal_mem_hooks_unregister_release(opal_common_ucx_mem_release_cb);
213213
opal_output_close(opal_common_ucx.output);
214+
if (opal_common_ucx.opal_mem_hooks) {
215+
mca_base_framework_close(&opal_memory_base_framework);
216+
}
214217
}
215218

216219
#if HAVE_DECL_OPEN_MEMSTREAM

0 commit comments

Comments
 (0)