krb5 commit [krb5-1.13]: Fix leak on error in libkadm5_clnt initialization
Tom Yu
tlyu at mit.edu
Fri Sep 9 14:48:08 EDT 2016
https://github.com/krb5/krb5/commit/f5cf410ab14ab8811db1cfe6ad4c6acf0c0ba6d6
commit f5cf410ab14ab8811db1cfe6ad4c6acf0c0ba6d6
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.13.7
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 7fac2a8..558eb27 100644
--- a/src/lib/kadm5/clnt/client_init.c
+++ b/src/lib/kadm5/clnt/client_init.c
@@ -345,7 +345,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