diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-03-19 06:43:34 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-03-19 06:43:34 +0000 |
commit | 72e6cdfa2cd95240439c72705ab28a2eebb7d04e (patch) | |
tree | ae830b7817948dc795cc92ec98216c478dde57e3 /intl/loadmsgcat.c | |
parent | 354b75277bc86768eafbbf5f590deb27e0a71d89 (diff) | |
download | glibc-72e6cdfa2cd95240439c72705ab28a2eebb7d04e.tar.gz glibc-72e6cdfa2cd95240439c72705ab28a2eebb7d04e.tar.xz glibc-72e6cdfa2cd95240439c72705ab28a2eebb7d04e.zip |
Remove useless "if" before "free".
Diffstat (limited to 'intl/loadmsgcat.c')
-rw-r--r-- | intl/loadmsgcat.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/intl/loadmsgcat.c b/intl/loadmsgcat.c index 537fd6013c..3cba7b1491 100644 --- a/intl/loadmsgcat.c +++ b/intl/loadmsgcat.c @@ -1236,8 +1236,7 @@ _nl_load_domain (domain_file, domainbinding) /* This is an invalid revision. */ invalid: /* This is an invalid .mo file. */ - if (domain->malloced) - free (domain->malloced); + free (domain->malloced); #ifdef HAVE_MMAP if (use_mmap) munmap ((caddr_t) data, size); @@ -1289,12 +1288,10 @@ _nl_unload_domain (domain) if (convd->conv != (__gconv_t) -1) __gconv_close (convd->conv); } - if (domain->conversions != NULL) - free (domain->conversions); + free (domain->conversions); __libc_rwlock_fini (domain->conversions_lock); - if (domain->malloced) - free (domain->malloced); + free (domain->malloced); # ifdef _POSIX_MAPPED_FILES if (domain->use_mmap) |