diff options
author | Russ Allbery <rra@stanford.edu> | 2012-09-24 20:58:48 -0700 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2012-09-24 20:58:48 -0700 |
commit | a9050015bbe7e2817f504414aac7009b13058e0f (patch) | |
tree | 876e82ef77d6d7cc7631cbc2d3b397fa60f9158f /client | |
parent | 7a02f3ffed5fcfdfe0e91e37ae304a95bd51f5f1 (diff) |
Close more client memory leaks on error conditions
Change-Id: I111f7a9c7e5f499e624e1046ace09a7ae53249a7
Diffstat (limited to 'client')
-rw-r--r-- | client/client-v2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/client/client-v2.c b/client/client-v2.c index 82e9217..2163c1c 100644 --- a/client/client-v2.c +++ b/client/client-v2.c @@ -203,6 +203,7 @@ internal_v2_read_token(struct remctl *r, gss_buffer_t token) if (status != TOKEN_OK) { internal_token_error(r, "receiving token", status, major, minor); if (status == TOKEN_FAIL_EOF || status == TOKEN_FAIL_TIMEOUT) { + gss_delete_sec_context(&minor, &r->context, GSS_C_NO_BUFFER); socket_close(r->fd); r->fd = INVALID_SOCKET; } |