about summary refs log tree commit diff
path: root/iconv/gconv_db.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-28 09:52:01 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-28 09:52:01 +0000
commit0dbbad29ce74db354008b7fb5e151cc6de690003 (patch)
tree9271942962deb900d2d93270fafa35a12e9ea065 /iconv/gconv_db.c
parenta9d755661b74c081f57e249027a9bcea5b079031 (diff)
downloadglibc-0dbbad29ce74db354008b7fb5e151cc6de690003.tar.gz
glibc-0dbbad29ce74db354008b7fb5e151cc6de690003.tar.xz
glibc-0dbbad29ce74db354008b7fb5e151cc6de690003.zip
Update.
1999-01-28  Ulrich Drepper  <drepper@cygnus.com>

	* iconv/gconv_db.c (free_mem): Don't free module tree if there is none.
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 a5f2375f1c..e415d0d628 100644
--- a/iconv/gconv_db.c
+++ b/iconv/gconv_db.c
@@ -739,7 +739,8 @@ free_mem (void)
   if (__gconv_alias_db != NULL)
     __tdestroy (__gconv_alias_db, free);
 
-  free_modules_db (__gconv_modules_db);
+  if (__gconv_modules_db != NULL)
+    free_modules_db (__gconv_modules_db);
 
   if (known_derivations != NULL)
     __tdestroy (known_derivations, free_derivation);