Skip to content

Commit 088700d

Browse files
committed
Remove uGNI library cleanup logic
The library cleanup logic was added in hopes of fixing the uGNI resource leak that occurs when communication domain members exit. This logic did not fix the leak and results in warnings from the device driver on process exit which is confusing to the user.
1 parent ab49e08 commit 088700d

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

lib/src/zap/ugni/zap_ugni.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2976,21 +2976,3 @@ zap_err_t zap_transport_get(zap_t *pz, zap_log_fn_t log_fn,
29762976
return ZAP_ERR_RESOURCE;
29772977
}
29782978

2979-
static void __attribute__ ((destructor)) ugni_fini(void);
2980-
static void ugni_fini()
2981-
{
2982-
gni_return_t grc;
2983-
struct ugni_mh *mh;
2984-
2985-
while (!LIST_EMPTY(&mh_list)) {
2986-
mh = LIST_FIRST(&mh_list);
2987-
ZUGNI_LIST_REMOVE(mh, link);
2988-
(void)GNI_MemDeregister(_dom.nic, &mh->mh);
2989-
free(mh);
2990-
}
2991-
2992-
grc = GNI_CdmDestroy(_dom.cdm);
2993-
if (grc != GNI_RC_SUCCESS)
2994-
LOG("GNI_CdmDestroy failed with error %d\n", grc);
2995-
}
2996-

0 commit comments

Comments
 (0)