Great work Max!

I just applied your patch to the libosmocoding, and the problem was solved.
Valgrind now says, that everything is ok ;)

BTW: did the osmo-bts-trx TCH/H problem solved?

With best regards,
Vadim Yanitskiy.