mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
s3:rpc_server: Do not free the tdbname before we printed it
Found by GCC 9. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13937 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 790d7e34cbe4e190d6acdd24696efe53944cd4a6)
This commit is contained in:
parent
2ec1569737
commit
541a98bc84
@ -95,13 +95,13 @@ static bool elog_check_access( EVENTLOG_INFO *info, const struct security_token
|
||||
tdbname,
|
||||
SECINFO_OWNER | SECINFO_GROUP | SECINFO_DACL,
|
||||
&sec_desc);
|
||||
TALLOC_FREE( tdbname );
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DEBUG(5,("elog_check_access: Unable to get NT ACL for %s: %s\n",
|
||||
tdbname, nt_errstr(status)));
|
||||
TALLOC_FREE(tdbname);
|
||||
return False;
|
||||
}
|
||||
TALLOC_FREE(tdbname);
|
||||
|
||||
ace = talloc_zero(sec_desc, struct security_ace);
|
||||
if (ace == NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user