aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuji <r.ooba@ictec.co.jp>2009-06-30 16:39:13 (GMT)
committerJouni Malinen <j@w1.fi>2009-11-22 18:20:04 (GMT)
commit37d6a2ae55bccbdc16f266f69f227fe187e80523 (patch)
tree67f454a9a1d73dee058c724c3fe362ab38d03df1
parent52d29a852c7e89040c594139a7a953907bd09e52 (diff)
downloadhostap-06-37d6a2ae55bccbdc16f266f69f227fe187e80523.zip
hostap-06-37d6a2ae55bccbdc16f266f69f227fe187e80523.tar.gz
hostap-06-37d6a2ae55bccbdc16f266f69f227fe187e80523.tar.bz2
Fix EAP-TNC peer memory leak on an error path
(cherry picked from commit 1c5a1aa51c37f3604bbef5c24b3e4209848f6886)
-rw-r--r--src/eap_peer/tncc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eap_peer/tncc.c b/src/eap_peer/tncc.c
index 662662d..eaaa168 100644
--- a/src/eap_peer/tncc.c
+++ b/src/eap_peer/tncc.c
@@ -1106,6 +1106,7 @@ static struct tnc_if_imc * tncc_parse_imc(char *start, char *end, int *error)
if (pos >= end || *pos != ' ') {
wpa_printf(MSG_ERROR, "TNC: Ignoring invalid IMC line '%s' "
"(no space after name)", start);
+ os_free(imc->name);
os_free(imc);
return NULL;
}