From 03ffc817c2dbedad74773652b5185f5450bf5732 Mon Sep 17 00:00:00 2001 From: Marc Cromme Date: Fri, 11 May 2007 22:59:36 +0000 Subject: [PATCH] free-ing memory to avoid memory leakage in test program --- src/test_icu_I18N.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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; } -- 1.7.10.4