From ad7e3b1d1eaf649b0f5f035a7daf0d1ba2669174 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Tue, 16 Nov 2010 21:37:38 +0100 Subject: [PATCH] fixed memory leak --- src/libcharon/plugins/tnc_imv/tnc_imv_recommendations.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcharon/plugins/tnc_imv/tnc_imv_recommendations.c b/src/libcharon/plugins/tnc_imv/tnc_imv_recommendations.c index fb76d0057a..5e8eccfced 100644 --- a/src/libcharon/plugins/tnc_imv/tnc_imv_recommendations.c +++ b/src/libcharon/plugins/tnc_imv/tnc_imv_recommendations.c @@ -328,7 +328,7 @@ METHOD(recommendations_t, destroy, void, { recommendation_entry_t *entry; - while (this->recs->remove_last(this->recs, (void**)&entry)) + while (this->recs->remove_last(this->recs, (void**)&entry) == SUCCESS) { free(entry->reason.ptr); free(entry->reason_language.ptr); -- 2.47.2