1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

r16272: Fix memleak.

Guenther
(This used to be commit afdb1189029e01a132f16fea48624126ec65cd77)
This commit is contained in:
Günther Deschner 2006-06-15 21:59:25 +00:00 committed by Gerald (Jerry) Carter
parent c2528679d8
commit d4ad11ccd8

View File

@ -195,6 +195,7 @@ int ads_kinit_password(ADS_STRUCT *ads)
}
if (!ads->auth.password) {
SAFE_FREE(s);
return KRB5_LIBOS_CANTREADPWD;
}
@ -205,7 +206,7 @@ int ads_kinit_password(ADS_STRUCT *ads)
DEBUG(0,("kerberos_kinit_password %s failed: %s\n",
s, error_message(ret)));
}
free(s);
SAFE_FREE(s);
return ret;
}