[Issue 9860] New: ldapsearch memory leaks