From 1c5a1aa51c37f3604bbef5c24b3e4209848f6886 Mon Sep 17 00:00:00 2001 From: Ryuji Date: Tue, 30 Jun 2009 19:39:13 +0300 Subject: [PATCH] Fix EAP-TNC peer memory leak on an error path --- src/eap_peer/tncc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/eap_peer/tncc.c b/src/eap_peer/tncc.c index 662662d29..eaaa1689b 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; }