Skip to content

Commit

Permalink
Fix leak on error in libkadm5_clnt initialization
Browse files Browse the repository at this point in the history
In init_any(), free handle->lhandle on failure.

(cherry picked from commit 39b96f8)

ticket: 8435
version_fixed: 1.13.7
  • Loading branch information
greghudson authored and tlyu committed Sep 2, 2016
1 parent d6ad684 commit f5cf410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/kadm5/clnt/client_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ init_any(krb5_context context, char *client_name, enum init_type init_type,
clnt_destroy(handle->clnt);
if (fd != -1)
close(fd);

free(handle->lhandle);
kadm5_free_config_params(handle->context, &handle->params);

cleanup:
Expand Down

0 comments on commit f5cf410

Please sign in to comment.