[PATCH] Fix newlocale, uselocale, duplocale, is*_l and to*_l
Jakub Jelinek
jakub@redhat.com
Sat Aug 31 12:25:00 GMT 2002
On Sat, Aug 31, 2002 at 12:04:15PM -0700, Roland McGrath wrote:
> I have put in similar changes now that I think are right. Please check them.
> We certainly need some tests for this stuff if anybody feels like writing some.
free_data_and_exit:
while (cnt-- > 0)
if (((category_mask & 1 << cnt) != 0)
...
while (cnt-- > 0)
if (result.__names[cnt] != _nl_C_name)
free ((char *) result.__names[cnt]);
goto free_data_and_exit;
cnt will be zero here, so free_data_and_exit will not do its job.
Jakub
More information about the Libc-hacker
mailing list