From: Greg Hudson Date: Wed, 29 Jun 2016 02:15:17 +0000 (-0400) Subject: Fix leak in kadm5_hook interface X-Git-Tag: krb5-1.15-beta1~105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40f25ae58415304006dd66ad55eeeb7505d1a816;p=thirdparty%2Fkrb5.git Fix leak in kadm5_hook interface In k5_kadm5_hook_free_handles(), free each handle structure as well as its module data. ticket: 8445 (new) target_version: 1.14-next target_version: 1.13-next tags: pullup --- diff --git a/src/lib/kadm5/srv/kadm5_hook.c b/src/lib/kadm5/srv/kadm5_hook.c index 13f454fcd0..df337bc32e 100644 --- a/src/lib/kadm5/srv/kadm5_hook.c +++ b/src/lib/kadm5/srv/kadm5_hook.c @@ -104,6 +104,7 @@ k5_kadm5_hook_free_handles(krb5_context context, kadm5_hook_handle *handles) handle = *hp; if (handle->vt.fini != NULL) handle->vt.fini(context, handle->data); + free(handle); } free(handles); }