diff options
author | Bruce A. Mah <bmah@es.net> | 2020-05-22 12:09:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-22 12:09:26 -0700 |
commit | 99b79f21026d4c72b57ace7f64821c87b016f09c (patch) | |
tree | a42775a58b8e5dc2382cd1bed883c113ba1a9592 | |
parent | 33d3b199e64e6a7098b2a0089dc5c76d19b484ff (diff) | |
download | iperf3-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.c | 1 |
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; } |