From 0a1f01ce3f049c181c305ced643d8da7dad16757 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 17 Mar 2016 18:10:42 -0700 Subject: [PATCH] GUAC-1164: Ensure locks used by OpenSSL are always freed. --- src/common-ssh/guac_ssh.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common-ssh/guac_ssh.c b/src/common-ssh/guac_ssh.c index 12156dee..79682f7d 100644 --- a/src/common-ssh/guac_ssh.c +++ b/src/common-ssh/guac_ssh.c @@ -128,6 +128,9 @@ static void guac_common_ssh_openssl_free_locks(int count) { for (i=0; i < count; i++) pthread_mutex_destroy(&(guac_common_ssh_openssl_locks[i])); + /* Free lock array */ + free(guac_common_ssh_openssl_locks); + } int guac_common_ssh_init(guac_client* client) {