Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.10.0, 0.11.0
-
None
-
None
-
None
-
Windows (all versions)
Description
ISSUE:
If the preprocessor define APR_HAS_THREADS is set then the contructor of APRInitializer calls APR function "apr_threadkey_private_create()".
The APR function allocates TLS memory.
This memory is never freed.
Microsoft Application Verifier is able to detect this issue.
PROPOSAL:
The destructor of APRInitializer should call APR function "apr_threadkey_private_delete()" if APR_HAS_THREADS was set.