Re: [Exim] freeing store in local_scan()

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Nico Erfurth
Date:  
À: Phil Chambers
CC: exim-users
Sujet: 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