]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix trivial leak in OTP kdcpreauth module 1217/head
authorPavel Březina <pbrezina@redhat.com>
Wed, 15 Sep 2021 12:03:35 +0000 (14:03 +0200)
committerGreg Hudson <ghudson@mit.edu>
Thu, 16 Sep 2021 03:36:36 +0000 (23:36 -0400)
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

index acdbca9d0270d948d1182d06dfaff754e569ee11..20cd18abfde62a5aff376533eb069dd2a362f549 100644 (file)
@@ -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);
 }