s3-libads: Do not leak the msg on error
authorAndreas Schneider <asn@samba.org>
Wed, 5 Oct 2016 08:33:26 +0000 (10:33 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 8 Mar 2017 13:59:35 +0000 (14:59 +0100)
commit980eae07f9d85f627aab01090880e25cd21da55d
tree6ba34db5582eff296e1e6f693496a827c94f99be
parente015748657e9ee755b04f55f088c78bd025378cc
s3-libads: Do not leak the msg on error

ldap_search_ext_s manpage states:
Note that res parameter of ldap_search_ext_s should be freed with
ldap_msgfree() regardless of return value of these functions.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Wed Mar  8 14:59:35 CET 2017 on sn-devel-144
source3/libads/ldap.c