]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix leak in kadm5_hook interface
authorGreg Hudson <ghudson@mit.edu>
Wed, 29 Jun 2016 02:15:17 +0000 (22:15 -0400)
committerTom Yu <tlyu@mit.edu>
Fri, 2 Sep 2016 22:30:08 +0000 (18:30 -0400)
In k5_kadm5_hook_free_handles(), free each handle structure as well as
its module data.

(cherry picked from commit 40f25ae58415304006dd66ad55eeeb7505d1a816)

ticket: 8445
version_fixed: 1.13.7

src/lib/kadm5/srv/kadm5_hook.c

index 62f3bffcea5d833d84c8097dafacbbb02cee1316..8e68e8c220a8445accc82c113a932403b2ba889c 100644 (file)
@@ -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);
 }