covscan: free ucs2-encoded password copy when generating NTLM hash
On successful code path we leak internal copy of the ucs2-encoded password. Fixes: https://pagure.io/freeipa/issue/8131 Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
1 parent
e3ad78538e
commit
e9dd757763
1 file changed
+1
@@ -103,6 +103,7 @@ int encode_nt_key(char *newPasswd, uint8_t *nt_key)
|
||||
}
|
||||
|
||||
ret = 0;
|
||||
free(ucs2Passwd);
|
||||
|
||||
done:
|
||||
return ret;
|
||||
|
||||
Reference in new issue
Block a user