mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Fix a memleak in secrets_fetch_trust_account_password_legacy
Coverity ID 571
This commit is contained in:
parent
2663c81a78
commit
a551773e34
@ -399,6 +399,7 @@ bool secrets_fetch_trust_account_password_legacy(const char *domain,
|
|||||||
|
|
||||||
if (size != sizeof(*pass)) {
|
if (size != sizeof(*pass)) {
|
||||||
DEBUG(0, ("secrets were of incorrect size!\n"));
|
DEBUG(0, ("secrets were of incorrect size!\n"));
|
||||||
|
SAFE_FREE(pass);
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user