aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce A. Mah <bmah@es.net>2020-05-22 12:09:26 -0700
committerGitHub <noreply@github.com>2020-05-22 12:09:26 -0700
commit99b79f21026d4c72b57ace7f64821c87b016f09c (patch)
treea42775a58b8e5dc2382cd1bed883c113ba1a9592
parent33d3b199e64e6a7098b2a0089dc5c76d19b484ff (diff)
downloadiperf3-99b79f21026d4c72b57ace7f64821c87b016f09c.tar.gz
fix: Fix stupid memory leak. (#1005)
Pointed out by @oleh-yudin-ring. Follow-up to #996.
-rw-r--r--src/iperf_auth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/iperf_auth.c b/src/iperf_auth.c
index fde44a6..46211e0 100644
--- a/src/iperf_auth.c
+++ b/src/iperf_auth.c
@@ -294,6 +294,7 @@ int encode_auth_setting(const char *username, const char *password, EVP_PKEY *pu
unsigned char *encrypted = NULL;
int encrypted_len;
encrypted_len = encrypt_rsa_message(text, public_key, &encrypted);
+ free(text);
if (encrypted_len < 0) {
return -1;
}