The shared memory segment that is created for local connect clients is not released. This can result in consumption of all the available segments.
Patch adds a cleanup via an atexit() call.
Patch committed to git master and cvs head.
The patch cleansup the shared mem segment, but only the last one created. If a client calls newCIMCENV multiple times, it will not be able to clean them all. There shouldn't be any reason for a client to do that though.