pdb: Fix CID 1427620 Resource leak
authorVolker Lendecke <vl@samba.org>
Wed, 17 Jan 2018 13:38:41 +0000 (14:38 +0100)
committerStefan Metzmacher <metze@samba.org>
Sun, 11 Feb 2018 10:12:08 +0000 (11:12 +0100)
commitd800e1cd81e575ecc61c5a14b127e8156a098257
tree4061641d2178127e2115de5ba42caec178a04e86
parent4360d83f77aeb54d6124bbc50e34def4884dcf5a
pdb: Fix CID 1427620 Resource leak

It's not exactly a resource leak (we only really realloc if we shrink
dramatically), but assigning the result from tdb_realloc looks nicer.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13263

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 4e5c9427085f001941adaf761b18740a2e169240)
source3/passdb/pdb_samba_dsdb.c