krb5 commit [krb5-1.14]: Fix leak on error in libkadm5_clnt initialization
Tom Yu
tlyu at mit.edu
Fri Sep 2 17:04:20 EDT 2016
https://github.com/krb5/krb5/commit/8295084b039637fbedaea5e6b5c43f557c1ff998
commit 8295084b039637fbedaea5e6b5c43f557c1ff998
Author: Greg Hudson <ghudson at mit.edu>
Date: Mon Jun 27 02:00:26 2016 -0400
Fix leak on error in libkadm5_clnt initialization
In init_any(), free handle->lhandle on failure.
(cherry picked from commit 39b96f8531aefa73f1c48f99e0e0229936a7dcaa)
ticket: 8435
version_fixed: 1.14.4
src/lib/kadm5/clnt/client_init.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/lib/kadm5/clnt/client_init.c b/src/lib/kadm5/clnt/client_init.c
index b96cc35..a8017df 100644
--- a/src/lib/kadm5/clnt/client_init.c
+++ b/src/lib/kadm5/clnt/client_init.c
@@ -352,7 +352,7 @@ error:
clnt_destroy(handle->clnt);
if (fd != -1)
close(fd);
-
+ free(handle->lhandle);
kadm5_free_config_params(handle->context, &handle->params);
cleanup:
More information about the cvs-krb5
mailing list