Re: [Exim] Another small patch, please comment

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Nico Erfurth
Dátum:  
Címzett: michael
CC: exim-users
Tárgy: 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