aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-11-27 16:33:11 (GMT)
committerJouni Malinen <j@w1.fi>2011-11-27 16:33:11 (GMT)
commitb32a8d1dfe1c0e39b9a73da099136ff863f26e73 (patch)
tree90a929d46eba2ab515ad346772c64546ef26f28d /tests
parente770c497eb7dbbc24533f116707e483866429ebd (diff)
downloadhostap-b32a8d1dfe1c0e39b9a73da099136ff863f26e73.zip
hostap-b32a8d1dfe1c0e39b9a73da099136ff863f26e73.tar.gz
hostap-b32a8d1dfe1c0e39b9a73da099136ff863f26e73.tar.bz2
test-https: Fix memory leaks in TLS processing
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/test-https.c4
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 (;;) {