commit | 99b79f21026d4c72b57ace7f64821c87b016f09c | [log] [tgz] |
---|---|---|
author | Bruce A. Mah <bmah@es.net> | Fri May 22 12:09:26 2020 -0700 |
committer | GitHub <noreply@github.com> | Fri May 22 12:09:26 2020 -0700 |
tree | a42775a58b8e5dc2382cd1bed883c113ba1a9592 | |
parent | 33d3b199e64e6a7098b2a0089dc5c76d19b484ff [diff] |
fix: Fix stupid memory leak. (#1005) Pointed out by @oleh-yudin-ring. Follow-up to #996.
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 @@ unsigned char *encrypted = NULL; int encrypted_len; encrypted_len = encrypt_rsa_message(text, public_key, &encrypted); + free(text); if (encrypted_len < 0) { return -1; }