On Fri, 28 Feb 2003, Phil Chambers wrote:
> Can I ask for further clarification? If more than one message is received in a
> single SMTP transaction, local_scan() is called fore each one. Is all memory
> obtained by store_get() freed between messages?
Yes. This is the detail that I have a note about to add to the manual.
> I ask this because I intend to have local_scan() read a file and do
> not wish to re-read it if local_scan() is called several times in one
> session. I will hold the settings I have read from the file in memory
> and use static pointers to the memory. I need to know if store_get()'s
> memory will be freed because, if it is, I will need to use direct
> calls to malloc().
You can call store_get_perm() for that kind of thing. This is something
new that is also down to be documented in the next edition. Or you can
use store_malloc().
Philip
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.