Sun Directory Server Enterprise Edition 7.0 Developer's Guide

Memory Concerns

Free the cookie parameter after the iteration using slapi_ch_free().