From 8ce63ec09b21cee470731ee9253a9c2855cf836e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 28 Jan 1999 10:53:10 +0000 Subject: [PATCH] Update. * iconv/gconv_db.c (free_modules_db): Don't free memory of internal modules. --- ChangeLog | 3 +++ iconv/gconv_db.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f75c7fd..e676774 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1999-01-28 Ulrich Drepper + * iconv/gconv_db.c (free_modules_db): Don't free memory of + internal modules. + * iconv/gconv_db.c (free_mem): Don't free module tree if there is none. 1999-01-27 Ulrich Drepper diff --git a/iconv/gconv_db.c b/iconv/gconv_db.c index e415d0d..c007732 100644 --- a/iconv/gconv_db.c +++ b/iconv/gconv_db.c @@ -726,7 +726,8 @@ free_modules_db (struct gconv_module *node) { struct gconv_module *act = node; node = node->matching; - free (act); + if (act->module_name[0] == '/') + free (act); } while (node != NULL); } -- 2.7.4