1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:passdb: Fix a memory leak in secrets_fetch_or_upgrade_domain_info()

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): Mon Nov 13 14:05:46 CET 2017 on sn-devel-144
This commit is contained in:
Andreas Schneider 2017-11-02 21:49:43 +01:00 committed by Ralph Boehme
parent 142f778c73
commit f56ce215c7

View File

@ -1476,6 +1476,7 @@ NTSTATUS secrets_fetch_or_upgrade_domain_info(const char *domain,
DBG_ERR("secrets_domain_info_password_create(pw) failed " DBG_ERR("secrets_domain_info_password_create(pw) failed "
"for %s - %s\n", domain, nt_errstr(status)); "for %s - %s\n", domain, nt_errstr(status));
dbwrap_transaction_cancel(db); dbwrap_transaction_cancel(db);
SAFE_FREE(old_pw);
TALLOC_FREE(frame); TALLOC_FREE(frame);
return status; return status;
} }