krb5 commit: Fix leak on error in libkadm5_clnt initialization
Greg Hudson
ghudson at mit.edu
Wed Aug 10 13:51:34 EDT 2016
https://github.com/krb5/krb5/commit/39b96f8531aefa73f1c48f99e0e0229936a7dcaa
commit 39b96f8531aefa73f1c48f99e0e0229936a7dcaa
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.
ticket: 8435 (new)
target_version: 1.14-next
target_version: 1.13-next
tags: pullup
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 092ca2c..6291db7 100644
--- a/src/lib/kadm5/clnt/client_init.c
+++ b/src/lib/kadm5/clnt/client_init.c
@@ -351,7 +351,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