diff options
author | Jouni Malinen <j@w1.fi> | 2011-11-27 18:33:11 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-11-27 18:33:11 +0200 |
commit | b32a8d1dfe1c0e39b9a73da099136ff863f26e73 (patch) | |
tree | 90a929d46eba2ab515ad346772c64546ef26f28d /tests/test-https.c | |
parent | e770c497eb7dbbc24533f116707e483866429ebd (diff) | |
download | external_wpa_supplicant_8_ti-b32a8d1dfe1c0e39b9a73da099136ff863f26e73.zip external_wpa_supplicant_8_ti-b32a8d1dfe1c0e39b9a73da099136ff863f26e73.tar.gz external_wpa_supplicant_8_ti-b32a8d1dfe1c0e39b9a73da099136ff863f26e73.tar.bz2 |
test-https: Fix memory leaks in TLS processing
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests/test-https.c')
-rw-r--r-- | tests/test-https.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-https.c b/tests/test-https.c index 27e692e..96e894d 100644 --- a/tests/test-https.c +++ b/tests/test-https.c @@ -131,6 +131,8 @@ static int https_client(int s, const char *path) if (in == NULL) goto done; } + wpabuf_free(out); + out = NULL; wpa_printf(MSG_INFO, "TLS connection established"); if (appl) @@ -154,6 +156,8 @@ static int https_client(int s, const char *path) wpa_printf(MSG_ERROR, "send: %s", strerror(errno)); goto done; } + wpabuf_free(out); + out = NULL; wpa_printf(MSG_INFO, "Reading HTTP response"); for (;;) { |