diff options
author | Lukas Larsson <[email protected]> | 2016-07-13 10:38:33 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2016-07-13 10:38:37 +0200 |
commit | 8e1e877265b312c95978e9b70e8c383fb18f7508 (patch) | |
tree | 1b35d1ebf02bd8c50e55c78c00d5521e8ee7c700 | |
parent | b92f2964f17ac05b1ba476a4f9a7d9fd669650f9 (diff) | |
download | otp-8e1e877265b312c95978e9b70e8c383fb18f7508.tar.gz otp-8e1e877265b312c95978e9b70e8c383fb18f7508.tar.bz2 otp-8e1e877265b312c95978e9b70e8c383fb18f7508.zip |
erts: Make sure to de-allocate the old seq tracer
-rw-r--r-- | erts/emulator/beam/erl_trace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_trace.c b/erts/emulator/beam/erl_trace.c index 4cf38bf894..d14d237ca6 100644 --- a/erts/emulator/beam/erl_trace.c +++ b/erts/emulator/beam/erl_trace.c @@ -493,8 +493,8 @@ erts_get_system_seq_tracer(void) if (st != erts_tracer_nil && call_enabled_tracer(st, NULL, TRACE_FUN_ENABLED, am_trace_status, am_undefined) == am_remove) { - erts_set_system_seq_tracer(NULL, 0, erts_tracer_nil); - st = erts_tracer_nil; + st = erts_set_system_seq_tracer(NULL, 0, erts_tracer_nil); + ERTS_TRACER_CLEAR(&st); } return st; |