From b32a8d1dfe1c0e39b9a73da099136ff863f26e73 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 27 Nov 2011 18:33:11 +0200 Subject: test-https: Fix memory leaks in TLS processing Signed-hostap: Jouni Malinen --- tests/test-https.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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 (;;) { -- cgit v1.1