4231. [contrib] Address unchecked memory allocation calls in query-loc and zone2ldap. [RT #40789]
update from author