Skip to content

Commit

Permalink
* locale/programs/repertoire.c (repertoire_read): Always free
Browse files Browse the repository at this point in the history
	memory for repertoire file name [Coverity CID 270].
  • Loading branch information
Ulrich Drepper committed Oct 13, 2007
1 parent 78a9b2d commit fab1a49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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].

Expand Down
3 changes: 1 addition & 2 deletions locale/programs/repertoire.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ repertoire_read (const char *filename)
filename);
repfile = lr_open (buf, repertoiremap_hash);

if (repfile == NULL)
free (buf);
free (buf);
}
}

Expand Down

0 comments on commit fab1a49

Please sign in to comment.