diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-04-16 00:57:10 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-04-16 01:03:48 +0200 |
commit | 5bd340eb5a176af428847949268869d71de8802c (patch) | |
tree | 7b65a93dc9a2e4309f04ca7921535b9b598c1930 /tests/oap/oap_client_test.c | |
parent | 69e356be93c420b5e2f8b96fbc89ef889cbcfe53 (diff) |
use osmo_init_logging2(), fix regression test memleaks
Particularly gbproxy_test.c had various mem leaks, which (will) show up with
gcc (Debian 7.3.0-15) 7.3.0 address sanitizer. Fix those leaks to verify that
we don't have memleaks in the production code.
Change-Id: Ia4204c8b3d895b42c103edecb61b99d3d22bd36f
Diffstat (limited to 'tests/oap/oap_client_test.c')
-rw-r--r-- | tests/oap/oap_client_test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/oap/oap_client_test.c b/tests/oap/oap_client_test.c index 7adae83ca..87d207057 100644 --- a/tests/oap/oap_client_test.c +++ b/tests/oap/oap_client_test.c @@ -252,8 +252,9 @@ static struct log_info info = { int main(int argc, char **argv) { - msgb_talloc_ctx_init(NULL, 0); - osmo_init_logging(&info); + void *ctx = talloc_named_const(NULL, 0, "oap_client_test"); + msgb_talloc_ctx_init(ctx, 0); + osmo_init_logging2(ctx, &info); OSMO_ASSERT(osmo_stderr_target); log_set_use_color(osmo_stderr_target, 0); |