From 7f6532772c84ad2c93ce201501cae31b024037a2 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 22 Nov 1999 01:28:56 +0000 Subject: Update. * sysdeps/i386/fpu/libm-test-ulps: Increase error value for latest gcc version. --- locale/programs/ld-ctype.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'locale/programs') diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c index d9a560783f..29ef15d0a5 100644 --- a/locale/programs/ld-ctype.c +++ b/locale/programs/ld-ctype.c @@ -1790,9 +1790,11 @@ ctype_read (struct linereader *ldfile, struct localedef_t *result, } } else - class_bit = _ISwbit (cnt); + { + class_bit = _ISwbit (cnt); - free (now->val.str.startmb); + free (now->val.str.startmb); + } } else if (now->tok == tok_digit) goto handle_tok_digit; @@ -2070,7 +2072,9 @@ with character code range values one must use the absolute ellipsis `...'")); if (strcmp (now->val.str.startmb, ctype->mapnames[cnt]) == 0) break; - if (cnt >= ctype->map_collection_nr) + if (cnt < ctype->map_collection_nr) + free (now->val.str.startmb); + else /* OK, it's a new map. */ ctype_map_new (ldfile, ctype, now->val.str.startmb, charmap); -- cgit v1.2.3