From: Marc Cromme Date: Fri, 11 May 2007 22:59:36 +0000 (+0000) Subject: free-ing memory to avoid memory leakage in test program X-Git-Tag: PAZPAR2.1.0.0~152 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=03ffc817c2dbedad74773652b5185f5450bf5732;p=pazpar2-moved-to-github.git free-ing memory to avoid memory leakage in test program --- diff --git a/src/test_icu_I18N.c b/src/test_icu_I18N.c index 13ed02e..9e87f38 100644 --- a/src/test_icu_I18N.c +++ b/src/test_icu_I18N.c @@ -1,4 +1,4 @@ -/* $Id: test_icu_I18N.c,v 1.17 2007-05-11 22:23:33 marc Exp $ +/* $Id: test_icu_I18N.c,v 1.18 2007-05-11 22:59:36 marc Exp $ Copyright (c) 2006-2007, Index Data. This file is part of Pazpar2. @@ -267,14 +267,17 @@ int test_icu_sortmap(const char * locale, int src_list_len, printf("\n"); } - + + + for( i = 0; i < src_list_len; i++) + free(list[i]); + + ucol_close(coll); icu_buf_utf8_destroy(buf8); icu_buf_utf16_destroy(buf16); - - return success; }