From: Adam Dickmeiss Date: Thu, 10 Sep 2009 13:30:47 +0000 (+0200) Subject: Fix leak in pp2_charset_destroy X-Git-Tag: v1.2.1~39^2~9 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=2f29d901e7ae8091b92f228a6aa5212d5fe2a01a;p=pazpar2-moved-to-github.git Fix leak in pp2_charset_destroy --- diff --git a/src/charsets.c b/src/charsets.c index d2c79bd..9332aa0 100644 --- a/src/charsets.c +++ b/src/charsets.c @@ -132,7 +132,12 @@ void pp2_charset_destroy(pp2_charset_t pct) assert(pct->ref_count >= 1); --(pct->ref_count); if (pct->ref_count == 0) + { +#if YAZ_HAVE_ICU + icu_chain_destroy(pct->icu_chn); +#endif xfree(pct); + } } }