Cleanup dictionary
#include <util/dict.h>
void dictCleanup(dictCtx dict, dictCleanupFunc cleanup, void *rock);
dict - dictionary to cleanup
cleanup - cleanup callback
rock - to pass to <cleanup>
Calls <cleanup> for every item in <dict>. If <cleanup> returns true, then item is removed from <dict>.
MT-Level: Safe if <dict> thread-safe.
None.