Re: [Exim] freeing store in local_scan()

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Nico Erfurth
Fecha:  
A: Phil Chambers
Cc: exim-users
Asunto: Re: [Exim] freeing store in local_scan()
Phil Chambers wrote:
> Exim 4.12:
>
> Section 38.5 says that store_get() is available for use in local_scan(). There is
> no reference to freeing store. I have had a quick look at store.h and store.c but
> am not sure which function should be used. Should I be using store_free() or
> store_release()?


AFAIK, store_release should be used if you use store_get to allocate
memory, and store_free if you used store_malloc.

The problem with store_release is, that you can only call it on the last
allocated block (IIRC).

Nico