You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2021/07/02 13:35:25 UTC

svn commit: r1891202 - /apr/apr/trunk/memory/unix/apr_pools.c

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;
         }
     }