You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by yl...@apache.org on 2022/01/19 17:18:41 UTC
svn commit: r1897211 - /apr/apr/branches/1.7.x/threadproc/win32/thread.c
Author: ylavic
Date: Wed Jan 19 17:18:40 2022
New Revision: 1897211
URL: http://svn.apache.org/viewvc?rev=1897211&view=rev
Log:
apr_thread: Follow up to r1897210: 1.7.x has a _WIN32_WCE error path too.
Destroy the pool if Windows' apr_thread_crate() fails on _WIN32_WCE, the
merge in r1897210 applied its changes to the other case (known to trunk)
only.
Modified:
apr/apr/branches/1.7.x/threadproc/win32/thread.c
Modified: apr/apr/branches/1.7.x/threadproc/win32/thread.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.7.x/threadproc/win32/thread.c?rev=1897211&r1=1897210&r2=1897211&view=diff
==============================================================================
--- apr/apr/branches/1.7.x/threadproc/win32/thread.c (original)
+++ apr/apr/branches/1.7.x/threadproc/win32/thread.c Wed Jan 19 17:18:40 2022
@@ -139,7 +139,9 @@ APR_DECLARE(apr_status_t) apr_thread_cre
attr && attr->stacksize > 0 ? attr->stacksize : 0,
(unsigned int (APR_THREAD_FUNC *)(void *))dummy_worker,
(*new), 0, &temp)) == 0) {
- return apr_get_os_error();
+ stat = apr_get_os_error();
+ apr_pool_destroy((*new)->pool);
+ return stat;
}
#endif
if (attr && attr->detach) {