[prev in list] [next in list] [prev in thread] [next in thread]
List: apr-cvs
Subject: svn commit: r1891202 - /apr/apr/trunk/memory/unix/apr_pools.c
From: jorton () apache ! org
Date: 2021-07-02 13:35:25
Message-ID: 20210702133525.B386917A7E4 () svn01-us-east ! apache ! org
[Download RAW message or body]
Author: jorton
Date: Fri Jul 2 13:35:25 2021
New Revision: 1891202
URL: http://svn.apache.org/viewvc?rev=1891202&view=rev
Log:
* memory/unix/apr_pools.c (apr_pool_create_unmanaged_ex): Destroy the
allocator if node allocation fails, rather than leaking it.
Modified:
apr/apr/trunk/memory/unix/apr_pools.c
Modified: apr/apr/trunk/memory/unix/apr_pools.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/memory/unix/apr_pools.c?rev=1891202&r1=1891201&r2=1891202&view=diff
==============================================================================
--- apr/apr/trunk/memory/unix/apr_pools.c (original)
+++ apr/apr/trunk/memory/unix/apr_pools.c Fri Jul 2 13:35:25 2021
@@ -1166,6 +1166,8 @@ APR_DECLARE(apr_status_t) apr_pool_creat
if (abort_fn)
abort_fn(APR_ENOMEM);
+ apr_allocator_destroy(pool_allocator);
+
return APR_ENOMEM;
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic