[Asterisk-Dev] LOCAL_USER cleanup update

Kevin P. Fleming kpfleming at digium.com
Wed Jan 11 08:56:20 MST 2006


Luigi Rizzo wrote:

> Actually, i suspect that the lifetime of the above info is
> limited to a single execution of app_exec, so probably one does
> not even need to calloc() the structure, but could just have it
> as an automatic variable in app_exec():
> 
> 	struct ivr_localuser foo, *u = foo; /* use *u to minimize diffs */

Yes, this would work. I don't see a great deal of value in this change 
on its own, but I'll reserve judgement until I see the rest of the stuff 
you are working on :-)



More information about the asterisk-dev mailing list