s3:libads: Fix mem leak in ads_create_machine_acct
authorJones Syue <jonessyue@qnap.com>
Fri, 1 Nov 2019 07:50:29 +0000 (15:50 +0800)
committerJeremy Allison <jra@samba.org>
Mon, 4 Nov 2019 22:48:50 +0000 (22:48 +0000)
commita58c93318d592d931d232a1a25e37abdd27a825d
tree70bc79acc77b43f201cd197d1993b357b96fe1f4
parent831796b2d7c1ee13d17238b5b4a2c3d56ab6eaaf
s3:libads: Fix mem leak in ads_create_machine_acct

Use 'goto done' instead of 'return' to fix machine_escaped leak.

Signed-off-by: Jones Syue <jonessyue@qnap.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Nov  4 22:48:50 UTC 2019 on sn-devel-184
source3/libads/ldap.c [changed mode: 0644->0755]