fixed memory leak in the IETF standard error handling

This commit is contained in:
Andreas Steffen
2012-07-12 21:26:18 +02:00
parent ea67a75b98
commit b6e23b24f3
+2 -1
View File
@@ -382,8 +382,9 @@ METHOD(pa_tnc_msg_t, process_ietf_std_errors, bool,
break;
}
/* remove the processed IETF standard error attribute */
/* remove and delete the processed IETF standard error attribute */
this->attributes->remove_at(this->attributes, enumerator);
attr->destroy(attr);
fatal_error = TRUE;
}
}