diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-11 12:36:01 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-11 12:36:01 +0200 |
commit | 1c30c2a510c60549d61515f49445b1683ff07f21 (patch) | |
tree | b11446387c01d54a930965480d21007b394b1b0c /src/pki.c | |
parent | 8bf8a7ef495638bbb0a98f69d8298132902fc9ac (diff) | |
download | libssh-1c30c2a510c60549d61515f49445b1683ff07f21.tar.gz libssh-1c30c2a510c60549d61515f49445b1683ff07f21.tar.xz libssh-1c30c2a510c60549d61515f49445b1683ff07f21.zip |
pki: Fix a resource leak.
Diffstat (limited to 'src/pki.c')
-rw-r--r-- | src/pki.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -254,6 +254,7 @@ int ssh_pki_import_privkey_file(ssh_session session, key_buf = malloc(sb.st_size + 1); if (key_buf == NULL) { + fclose(file); ssh_set_error_oom(session); return SSH_ERROR; } |