diff options
author | Rickard Green <[email protected]> | 2016-05-31 18:41:58 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2016-05-31 19:36:22 +0200 |
commit | 4d15511d6fe25ed15b6c1db00c23f1f4db1e9bb6 (patch) | |
tree | f168aa3d9d28487c6b8bd8a7980ea48a4d50a417 | |
parent | 5add0e9c741379a928f21c783316310fec6de095 (diff) | |
download | otp-4d15511d6fe25ed15b6c1db00c23f1f4db1e9bb6.tar.gz otp-4d15511d6fe25ed15b6c1db00c23f1f4db1e9bb6.tar.bz2 otp-4d15511d6fe25ed15b6c1db00c23f1f4db1e9bb6.zip |
Properly close message factories in erts_factory_trim_and_close()
-rw-r--r-- | erts/emulator/beam/erl_message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_message.c b/erts/emulator/beam/erl_message.c index ac7b9d6606..ea525b50dd 100644 --- a/erts/emulator/beam/erl_message.c +++ b/erts/emulator/beam/erl_message.c @@ -1725,7 +1725,7 @@ void erts_factory_trim_and_close(ErtsHeapFactory* factory, case FACTORY_MESSAGE: { ErtsMessage *mp = factory->message; if (mp->data.attached == ERTS_MSG_COMBINED_HFRAG) { - if (!mp->hfrag.next) { + if (!factory->heap_frags) { Uint sz = factory->hp - factory->hp_start; mp = erts_shrink_message(mp, sz, brefs, brefs_size); factory->message = mp; |