Re: how to free memory allocated using apr_palloc() - C Apache module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 27, 2017 at 10:25 AM, eeadev dev <eeadev@xxxxxxxxx> wrote:
> As written in the subject, is there a way to deallocate memory which has
> been allocated using apr_palloc() and what is the best practice to do that?
>

Create a sub-pool for the allocation and clear or destroy the subpool
(depending on whether you'll be re-using it) with the functions in
apr_pools.h.

-- 
Eric Covener
covener@xxxxxxxxx

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux