aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_message.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-01-11 16:51:41 +0100
committerRickard Green <[email protected]>2017-01-11 16:51:41 +0100
commit9d029dd04ad1a6a9e9725952b83d7cbdddfca088 (patch)
tree7cc405b8c60d0a3c7a5cc7648da46a69b218a0f9 /erts/emulator/beam/erl_message.c
parent4e48180f1e9a59e02a8b4a0276ea89b928910ad9 (diff)
parent8df00f51a4a2c0c6788b3dcf3c6be56c50e44461 (diff)
downloadotp-9d029dd04ad1a6a9e9725952b83d7cbdddfca088.tar.gz
otp-9d029dd04ad1a6a9e9725952b83d7cbdddfca088.tar.bz2
otp-9d029dd04ad1a6a9e9725952b83d7cbdddfca088.zip
Merge branch 'rickard/abandoned-heap-bugs' into maint
OTP-14134 OTP-14135 * rickard/abandoned-heap-bugs: Fix issues with abandoned heap
Diffstat (limited to 'erts/emulator/beam/erl_message.c')
-rw-r--r--erts/emulator/beam/erl_message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_message.c b/erts/emulator/beam/erl_message.c
index e4c696ae3b..f45e6974cd 100644
--- a/erts/emulator/beam/erl_message.c
+++ b/erts/emulator/beam/erl_message.c
@@ -193,7 +193,7 @@ free_message_buffer(ErlHeapFragment* bp)
erts_cleanup_offheap(&bp->off_heap);
ERTS_HEAP_FREE(ERTS_ALC_T_HEAP_FRAG, (void *) bp,
- ERTS_HEAP_FRAG_SIZE(bp->size));
+ ERTS_HEAP_FRAG_SIZE(bp->alloc_size));
bp = next_bp;
}while (bp != NULL);
}