]> 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 18:49:37 +0000 (14:49 -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.14.4

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);
 }