From: Andreas Steffen Date: Tue, 16 Nov 2010 20:37:38 +0000 (+0100) Subject: fixed memory leak X-Git-Tag: 4.5.1~507 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad7e3b1d1eaf649b0f5f035a7daf0d1ba2669174;p=thirdparty%2Fstrongswan.git fixed memory leak --- 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);