summaryrefslogtreecommitdiff
path: root/erts/emulator/beam/erl_db_hash.c
diff options
context:
space:
mode:
authorSverker Eriksson <sverker@erlang.org>2020-02-28 15:44:57 +0100
committerSverker Eriksson <sverker@erlang.org>2020-02-28 15:44:57 +0100
commit92ae997a86f30e449c30c6fb2f0e8cec314f70ad (patch)
treee788d4775726426f3a9c954e96c6be73e2cd42c6 /erts/emulator/beam/erl_db_hash.c
parent2b823b90b7dbd56aae3a3fbdcb182f9fd5127a59 (diff)
downloaderlang-92ae997a86f30e449c30c6fb2f0e8cec314f70ad.tar.gz
erts: Fix bug in ets:insert of list into compressed bag
Diffstat (limited to 'erts/emulator/beam/erl_db_hash.c')
-rw-r--r--erts/emulator/beam/erl_db_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_db_hash.c b/erts/emulator/beam/erl_db_hash.c
index 8076cf33ac..9d894d7979 100644
--- a/erts/emulator/beam/erl_db_hash.c
+++ b/erts/emulator/beam/erl_db_hash.c
@@ -913,7 +913,7 @@ static int db_eq_terms_comp(DbTableCommon* tb, DbTerm* a, DbTerm* b)
int is_eq;
ASSERT(tb->compress);
- hp_a = allocp_a = erts_alloc(ERTS_ALC_T_TMP, b->size*sizeof(Eterm));
+ hp_a = allocp_a = erts_alloc(ERTS_ALC_T_TMP, a->size*sizeof(Eterm));
tmp_offheap_a.first = NULL;
tmp_a = db_copy_from_comp(tb, a, &hp_a, &tmp_offheap_a);