[Asterisk-Dev] Properly Destroying Variables
Matthew Boehm
mboehm at cytelcom.com
Thu Sep 15 09:55:52 MST 2005
Michael Giagnocavo wrote:
> tmp wasn't allocated by that code; it's just a temp reference to an item in
> a list, so whatever destroys the list should take care of it if its supposed
> to. The issue would be if ast_load_realtime allocates something that
> ast_variables_destroy isn't cleaning up (if it's not being cleaned up some
> other way).
I think I see; Since tmp was never allocated, it will get destroyed
when the function exits just like any other int or char would within
that function.
-Matthew
More information about the asterisk-dev
mailing list