talloc, malloc and memory leaks

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-net-gprs@lists.osmocom.org/.

Holger Hans Peter Freyther hfreyther at sysmocom.de
Wed Jul 25 09:19:19 UTC 2012


On Wed, Jul 25, 2012 at 09:17:03AM +0200, Alexander Chemeris wrote:
> 
> 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.

Hi,

for me the PCU code is C compiled with a C++ compiler. I would more
think we will move to using to use a C compiler than using more of
C++ features. But yes the 'cleanup' attribute can be easily handled
by a "template TallocPtr<T>" class.

holger


-- 
- Holger Freyther <hfreyther at sysmocom.de>       http://www.sysmocom.de/
=======================================================================
* sysmocom - systems for mobile communications GmbH
* Schivelbeiner Str. 5
* 10439 Berlin, Germany
* Sitz / Registered office: Berlin, HRB 134158 B
* Geschaeftsfuehrer / Managing Directors: Holger Freyther, Harald Welte





More information about the osmocom-net-gprs mailing list