]> 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)
committerGreg Hudson <ghudson@mit.edu>
Wed, 10 Aug 2016 17:37:00 +0000 (13:37 -0400)
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

src/lib/kadm5/srv/kadm5_hook.c

index 13f454fcd0e5517b26b92790ad5234dd43ecfa79..df337bc32e0c06db488127f01fd933a34393b971 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);
 }