diff options
author | Björn-Egil Dahlberg <[email protected]> | 2015-05-12 11:55:34 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-05-12 11:55:34 +0200 |
commit | 5917fd5468a952fce7ebda8b57a6218fbb7bb878 (patch) | |
tree | d50876ad16a0e189bac1615f7df2bca4d78cc9ac /erts/emulator/beam | |
parent | 42d25222fa7395ad9fb58de2c964afa4caefb5b1 (diff) | |
download | otp-5917fd5468a952fce7ebda8b57a6218fbb7bb878.tar.gz otp-5917fd5468a952fce7ebda8b57a6218fbb7bb878.tar.bz2 otp-5917fd5468a952fce7ebda8b57a6218fbb7bb878.zip |
erts: Fix erts_send_error_term_to_logger memory leak
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/erts/emulator/beam/utils.c b/erts/emulator/beam/utils.c index e3034c1e24..965de748c9 100644 --- a/erts/emulator/beam/utils.c +++ b/erts/emulator/beam/utils.c @@ -2483,7 +2483,10 @@ erts_send_error_to_logger(Eterm gleader, erts_dsprintf_buf_t *dsbufp) int erts_send_error_term_to_logger(Eterm gleader, erts_dsprintf_buf_t *dsbufp, Eterm args) { - return send_error_term_to_logger(gleader, dsbufp->str, dsbufp->str_len, args); + int res; + res = send_error_term_to_logger(gleader, dsbufp->str, dsbufp->str_len, args); + destroy_logger_dsbuf(dsbufp); + return res; } int |