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:
Alexander Bokovoy authored and Christian Heimes committed 2019-11-29 11:14:18 +01:00
1 parent e3ad78538e
commit e9dd757763
1 file changed
+1
+1
View File
@@ -103,6 +103,7 @@ int encode_nt_key(char *newPasswd, uint8_t *nt_key)
}
ret = 0;
free(ucs2Passwd);
done:
return ret;