aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_peer/tncc.c
diff options
context:
space:
mode:
authorRyuji <r.ooba@ictec.co.jp>2009-06-30 16:39:13 (GMT)
committerJouni Malinen <j@w1.fi>2009-06-30 16:39:13 (GMT)
commit1c5a1aa51c37f3604bbef5c24b3e4209848f6886 (patch)
tree36d07f827f3fdf59d294e8ca64c3208ff236fe2a /src/eap_peer/tncc.c
parent064bb8232c9003b11be7bce3aa0a4a68aee2fd6f (diff)
downloadhostap-1c5a1aa51c37f3604bbef5c24b3e4209848f6886.zip
hostap-1c5a1aa51c37f3604bbef5c24b3e4209848f6886.tar.gz
hostap-1c5a1aa51c37f3604bbef5c24b3e4209848f6886.tar.bz2
Fix EAP-TNC peer memory leak on an error path
Diffstat (limited to 'src/eap_peer/tncc.c')
-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;
}