s3:passdb: Don't leak memory on error in fetch_ldap_pw()
authorAndreas Schneider <asn@samba.org>
Thu, 9 Aug 2018 14:05:41 +0000 (16:05 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 10 Aug 2018 23:49:16 +0000 (01:49 +0200)
commite4f4f5eb7303a0cce4f426dd9cfd1d6a488495b0
treefbbc27ebfd7b909e876581845e3ce4da15f67c72
parente6689c3e14c2dfaebaf1109f21e53184fea45d41
s3:passdb: Don't leak memory on error in fetch_ldap_pw()

Found by covscan.

A candidate to use tallac ...

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13567

Pair-Programmed-With: Justin Stephenson <jstephen@redhat.com>
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Justin Stephenson <jstephen@redhat.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/passdb/secrets.c