talloc, malloc and memory leaks

Alexander Chemeris alexander.chemeris at gmail.com
Wed Jul 25 07:17:03 UTC 2012


On Tue, Jul 24, 2012 at 11:51 PM, Holger Hans Peter Freyther
<hfreyther at sysmocom.de> wrote:
> Should we use a GCC extension that
> helps dealing with local variables? GCC can call a cleanup function
> on exit of the scope, an example can be seen here[1] nad this[2] is
> the description of the feature.

Oh, this looks like "hack your C to be C++", isn't it better to just
use C++ then? It has a very clean semantics for this which is
supported by _all_ compilers.


-- 
Regards,
Alexander Chemeris.
CEO, Fairwaves LLC / ООО УмРадио
http://fairwaves.ru




More information about the osmocom-net-gprs mailing list