mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
Fix resource leaks.
Fixes: https://fedorahosted.org/freeipa/ticket/1119
This commit is contained in:
parent
446a4ca439
commit
bb9617f838
@ -603,6 +603,7 @@ static int encode_ntlm_keys(char *newPasswd,
|
||||
/* the lanman password is upper case */
|
||||
upperPasswd = (char *)slapi_utf8StrToUpper((unsigned char *)newPasswd);
|
||||
if (!upperPasswd) {
|
||||
iconv_close(cd);
|
||||
ret = -1;
|
||||
goto done;
|
||||
}
|
||||
@ -614,6 +615,7 @@ static int encode_ntlm_keys(char *newPasswd,
|
||||
asciiPasswd = calloc(ol+1, 1);
|
||||
if (!asciiPasswd) {
|
||||
slapi_ch_free_string(&upperPasswd);
|
||||
iconv_close(cd);
|
||||
ret = -1;
|
||||
goto done;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user