Skip to content

Commit

Permalink
(_nl_load_locale_from_archive): Free normalized_codeset even if p was…
Browse files Browse the repository at this point in the history
… already normalized.
  • Loading branch information
Ulrich Drepper committed Sep 9, 2005
1 parent e73b144 commit 641fc4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locale/loadarchive.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Code to load locale data from the locale archive file.
Copyright (C) 2002, 2003 Free Software Foundation, Inc.
Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -185,9 +185,9 @@ _nl_load_locale_from_archive (int category, const char **namep)
memcpy (__mempcpy (__mempcpy (newname, name, p - name),
normalized_codeset, normlen),
rest, restlen);
free ((char *) normalized_codeset);
name = newname;
}
free ((char *) normalized_codeset);
}
}

Expand Down

0 comments on commit 641fc4a

Please sign in to comment.