diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-11-03 15:41:04 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-11-03 15:41:04 -0400 |
commit | 3bb49c011006d042f8a3f802d7abb3e9da51b15b (patch) | |
tree | a4114853839d822abacbbdae6085d2fdd4eb225c /src/tools/tor-gencert.c | |
parent | ff3e08f2af226d9660a08ab599c7e446c42fd7b4 (diff) | |
parent | 9b18b215bb34c4df1b94dec218c68a532c341e26 (diff) | |
download | tor-3bb49c011006d042f8a3f802d7abb3e9da51b15b.tar.gz tor-3bb49c011006d042f8a3f802d7abb3e9da51b15b.zip |
Merge branch 'maint-0.2.8' into maint-0.2.9
Diffstat (limited to 'src/tools/tor-gencert.c')
-rw-r--r-- | src/tools/tor-gencert.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tools/tor-gencert.c b/src/tools/tor-gencert.c index 4ddfbc9657..db308485e6 100644 --- a/src/tools/tor-gencert.c +++ b/src/tools/tor-gencert.c @@ -416,12 +416,11 @@ key_to_string(EVP_PKEY *key) } BIO_get_mem_ptr(b, &buf); - (void) BIO_set_close(b, BIO_NOCLOSE); - BIO_free(b); result = tor_malloc(buf->length + 1); memcpy(result, buf->data, buf->length); result[buf->length] = 0; - BUF_MEM_free(buf); + + BIO_free(b); RSA_free(rsa); return result; |