diff options
author | Sverker Eriksson <sverker@erlang.org> | 2020-02-28 15:44:57 +0100 |
---|---|---|
committer | Sverker Eriksson <sverker@erlang.org> | 2020-02-28 15:44:57 +0100 |
commit | 92ae997a86f30e449c30c6fb2f0e8cec314f70ad (patch) | |
tree | e788d4775726426f3a9c954e96c6be73e2cd42c6 /erts/emulator/beam/erl_db_hash.c | |
parent | 2b823b90b7dbd56aae3a3fbdcb182f9fd5127a59 (diff) | |
download | erlang-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.c | 2 |
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); |