Great news,
Of course, we can write a new function and register every root talloc context using it. What about that?
I just found, that talloc context may be specified in vty_app_info structure:
/*! Information an application registers with the VTY */ struct vty_app_info { /*! \brief name of the application */ const char *name; /*! \brief version string of the application */ const char *version; /*! \brief copyright string of the application */ const char *copyright; /*! \brief \ref talloc context */ void *tall_ctx; // ... }
But almost all osmo* applications don't set this pointer.
With best regards, Vadim Yanitskiy.