]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - build-utilities/hostap.git/commitdiff
test-https: Fix memory leaks in TLS processing
authorJouni Malinen <j@w1.fi>
Sun, 27 Nov 2011 16:33:11 +0000 (18:33 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 27 Nov 2011 16:33:11 +0000 (18:33 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

tests/test-https.c

index 27e692ea36f6e4bb18b5c4caa8d49bd6012c8890..96e894d51721daba04d5d3da7e2cc83a7855146b 100644 (file)
@@ -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 (;;) {