]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* locale/programs/repertoire.c (repertoire_read): Always free
authorUlrich Drepper <drepper@redhat.com>
Sat, 13 Oct 2007 05:26:27 +0000 (05:26 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 13 Oct 2007 05:26:27 +0000 (05:26 +0000)
memory for repertoire file name [Coverity CID 270].

ChangeLog
locale/programs/repertoire.c

index c3a9a30a982e6b2a9946a5469c12142016c91080..6b893679ef46d3680bd2043a2f45d7ad6e4a5a5b 100644 (file)
--- 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].
 
index cc83374c9f2441518229de50cf38e4049fe75e10..366580e80ff4161c35d080fd90f03147830c907d 100644 (file)
@@ -113,8 +113,7 @@ repertoire_read (const char *filename)
                      filename);
              repfile = lr_open (buf, repertoiremap_hash);
 
-             if (repfile == NULL)
-               free (buf);
+             free (buf);
            }
        }