[ewg] RE: [ofa-general] ib_rdma_bw - memory leaks?

Sean Hefty sean.hefty at intel.com
Wed Jul 1 09:05:31 PDT 2009


>3. rdma_create_event_channel() calls ucma_init() but
>rdma_destroy_event_channel() does not call ucma_cleanup(), this results into
>memory leak at provider's library since it does not call ibv_close_device()
>and thus unable to do *->free_context().

This is the correct behavior.  ucma_init() is called from several routines to
ensure that the library performs proper initialization.  Once initialized, it
remains initialized until the library is no longer used.  The cleanup is done in
rdma_cma_fini().

- Sean




More information about the ewg mailing list