about summary refs log tree commit diff
path: root/iconv/gconv_db.c
diff options
context:
space:
mode:
Diffstat (limited to 'iconv/gconv_db.c')
-rw-r--r--iconv/gconv_db.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/iconv/gconv_db.c b/iconv/gconv_db.c
index e415d0d628..c007732736 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);
 }