Re: [Exim] Another small patch, please comment

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Nico Erfurth
Fecha:  
A: michael
Cc: exim-users
Asunto: Re: [Exim] Another small patch, please comment
Nico Erfurth wrote:

> It does not free memory, but it reuses it. Search the code for
> store_reset. store_reset either returns the current "stack"-pointer or
> sets it. So the memory can be reclaimed if it isn't needed anymore, and
> exim does avoid reallocationg memory all the time.


Before somebody jumps in and corrects me, I'll do it myself :)

store_get(0) will return the current stack-pointer, store_reset will
only reset it, as the name says.

Nico