HomeFreeBSD

Fix uselocale(3) to not leak a reference to the old locale.

Description

Fix uselocale(3) to not leak a reference to the old locale.

In a single-threaded program pthread_getspecific() always returns NULL,
so the old locale would not end up being freed.

PR: 239520
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

Details

Provenance
markjAuthored on
Parents
rS359182: Remove cx module subdir, missed in r359178
Branches
Unknown
Tags
Unknown