From 6e1f9c092d6958a8a1c01629f43941647dc7fc20 Mon Sep 17 00:00:00 2001 From: Stefan Lippers-Hollmann Date: Tue, 14 Oct 2014 12:39:25 +0000 Subject: Imported Upstream version 2.3 --- src/eap_peer/tncc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/eap_peer/tncc.c') diff --git a/src/eap_peer/tncc.c b/src/eap_peer/tncc.c index 5b1a2d4..7ca956e 100644 --- a/src/eap_peer/tncc.c +++ b/src/eap_peer/tncc.c @@ -1092,8 +1092,10 @@ static int tncc_read_config(struct tncc_data *tncc) int error = 0; imc = tncc_parse_imc(pos + 4, line_end, &error); - if (error) + if (error) { + os_free(config); return -1; + } if (imc) { if (last == NULL) tncc->imc = imc; -- cgit v1.2.3