diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-10-13 05:26:27 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-10-13 05:26:27 +0000 |
commit | fab1a490acd7a6abefc37f94615001ab8cb83ae8 (patch) | |
tree | 2bcc78bc3072d0fcf5c6da98e05902800a5f7902 | |
parent | 78a9b2dc58d1f0d21fff58da0320467cc575e2fc (diff) | |
download | glibc-fab1a490acd7a6abefc37f94615001ab8cb83ae8.tar.gz glibc-fab1a490acd7a6abefc37f94615001ab8cb83ae8.tar.xz glibc-fab1a490acd7a6abefc37f94615001ab8cb83ae8.zip |
* locale/programs/repertoire.c (repertoire_read): Always free
memory for repertoire file name [Coverity CID 270].
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | locale/programs/repertoire.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index c3a9a30a98..6b893679ef 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 cc83374c9f..366580e80f 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); } } |