From e89abc2d4ea1fea1ec28d470f297514b828e4842 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pavel=20B=C5=99ezina?= Date: Wed, 15 Sep 2021 14:03:35 +0200 Subject: [PATCH] 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] --- src/plugins/preauth/otp/otp_state.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.47.2