Fix leak in icu_iter_get_org_info YAZ-666
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 20 Jun 2013 08:21:01 +0000 (10:21 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 20 Jun 2013 08:21:01 +0000 (10:21 +0200)
src/icu_chain.c

index bcb27b4..ffbbb70 100644 (file)
@@ -581,6 +581,7 @@ void icu_iter_get_org_info(yaz_icu_iter_t iter, size_t *start, size_t *len)
         *len = tmp->utf8_len - *start;
     else
         *len = 0;
+    icu_buf_utf8_destroy(tmp);
     iter->org->utf16_len = save_len;
 }