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)
committerKarolin Seeger <kseeger@samba.org>
Thu, 23 Aug 2018 08:39:15 +0000 (10:39 +0200)
commit1000cbe1c7acf8e018ff1ed7a150532a7ba2ee83
tree7b45bc41a7b6eeb0041f88813ddaed30c8aa705d
parent2431f54365a85581b6829f8d589b17f183b47cc0
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>
(cherry picked from commit e4f4f5eb7303a0cce4f426dd9cfd1d6a488495b0)
source3/passdb/secrets.c