diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-03-05 15:46:38 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-03-28 19:06:16 +0200 |
commit | 3d8b47fc5cbaf37fc86ace23a69c2f99910a0192 (patch) | |
tree | e07af9ed3fdba62ffd4926aa764e47bb63df33fc /src/coding/gsm0503_coding.c | |
parent | d65f3ea18eb08925bec3afc169869ee1a2453c81 (diff) |
fix logging talloc ctx: add osmo_init_logging2()
Deprecate osmo_init_logging() for the benefit of adding an explicit talloc
context argument to new function osmo_init_logging2(). Pass a ctx to
log_init() instead of hardcoded NULL.
Before now, *all* of our code uses a NULL ctx for logging, which amounts to
talloc "leaks" hit by address sanitizer builds on newer gcc (e.g. gcc 7.3.0 on
debian 9).
This commit helps fixing "leaks" detected in e.g. osmo-bsc unit tests by a
sanitize build with gcc (Debian 7.3.0-12) 7.3.0.
Change-Id: I216837780e9405fdaec8059c63d10699c695b360
Diffstat (limited to 'src/coding/gsm0503_coding.c')
0 files changed, 0 insertions, 0 deletions