host/mobile: use osmocom_ms as talloc context
commitd0ed4de0854f16f3f03be681356755fddaf3d251
authorVadim Yanitskiy <axilirator@gmail.com>
Wed, 17 May 2017 00:17:43 +0000 (17 03:17 +0300)
committerVadim Yanitskiy <axilirator@gmail.com>
Wed, 8 Nov 2017 11:46:57 +0000 (8 18:46 +0700)
treede945aa994d705590a3b778db736fadb68e360ad
parent8dbacacd37e2d4810c8e0ff2008c94cc6ded0b13
host/mobile: use osmocom_ms as talloc context

As we use talloc, it's absurdly not to use the main feature of
the library - hierarchical memory management. This change sets
talloc context of all sub-allocated objects to related osmocom_ms
instance. So, as soon as osmocom_ms instance is destroyed, all
sub-allocated chunks are getting destroyed too.

Change-Id: I6e3467ff739f3e6dc8dd60cc6d1fcd3f8e490ce9
src/host/layer23/include/osmocom/bb/mobile/mncc_sock.h
src/host/layer23/src/common/sim.c
src/host/layer23/src/mobile/app_mobile.c
src/host/layer23/src/mobile/gsm322.c
src/host/layer23/src/mobile/gsm48_cc.c
src/host/layer23/src/mobile/mncc_sock.c
src/host/layer23/src/mobile/mnccms.c
src/host/layer23/src/mobile/subscriber.c
src/host/layer23/src/mobile/transaction.c
src/host/layer23/src/mobile/vty_interface.c