aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--locale/programs/repertoire.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c3a9a30..6b89367 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2007-10-12 Ulrich Drepper <drepper@redhat.com>
+ * locale/programs/repertoire.c (repertoire_read): Always free
+ memory for repertoire file name [Coverity CID 270].
+
* elf/cache.c (save_aux_cache): Free memory allocated for
temporary file name [Coverity CID 267].
diff --git a/locale/programs/repertoire.c b/locale/programs/repertoire.c
index cc83374..366580e 100644
--- a/locale/programs/repertoire.c
+++ b/locale/programs/repertoire.c
@@ -113,8 +113,7 @@ repertoire_read (const char *filename)
filename);
repfile = lr_open (buf, repertoiremap_hash);
- if (repfile == NULL)
- free (buf);
+ free (buf);
}
}