[ https://issues.apache.org/jira/browse/LOGCXX-320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rhys Ulerich reopened LOGCXX-320: --------------------------------- Assignee: Rhys Ulerich (was: Curt Arnold) The patch applied in r1566664 included a bad call to apr_threadkey_private_delete that doesn't compile. Looks like there's a missing key argument per https://apr.apache.org/docs/apr/1.4/group__apr__thread__proc.html#ga20b9b79892a6532784fff023a4ebd8cf. > TLS memory of APR is not freed in destructor of APRInitializer > -------------------------------------------------------------- > > Key: LOGCXX-320 > URL: https://issues.apache.org/jira/browse/LOGCXX-320 > Project: Log4cxx > Issue Type: Bug > Affects Versions: 0.10.0, 0.10.1 > Environment: Windows (all versions) > Reporter: Christoph Thien > Assignee: Rhys Ulerich > Priority: Minor > > 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. -- This message was sent by Atlassian JIRA (v6.1.5#6160)