From: Pavel Březina Date: Wed, 15 Sep 2021 12:03:35 +0000 (+0200) Subject: Fix trivial leak in OTP kdcpreauth module X-Git-Tag: krb5-1.20-beta1~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e89abc2d4ea1fea1ec28d470f297514b828e4842;p=thirdparty%2Fkrb5.git Fix trivial leak in OTP kdcpreauth module The radius client object is stored in the otp state and should be freed on exit. [ghudson@mit.edu: edited commit message] --- diff --git a/src/plugins/preauth/otp/otp_state.c b/src/plugins/preauth/otp/otp_state.c index acdbca9d02..20cd18abfd 100644 --- a/src/plugins/preauth/otp/otp_state.c +++ b/src/plugins/preauth/otp/otp_state.c @@ -618,6 +618,7 @@ otp_state_free(otp_state *self) return; krad_attrset_free(self->attrs); + krad_client_free(self->radius); token_types_free(self->types); free(self); }