aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-05-12 11:55:34 +0200
committerBjörn-Egil Dahlberg <[email protected]>2015-05-12 11:55:34 +0200
commit5917fd5468a952fce7ebda8b57a6218fbb7bb878 (patch)
treed50876ad16a0e189bac1615f7df2bca4d78cc9ac /erts/emulator/beam
parent42d25222fa7395ad9fb58de2c964afa4caefb5b1 (diff)
downloadotp-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.c5
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