aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/external.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-03-08 14:41:54 +0100
committerSverker Eriksson <[email protected]>2017-03-08 18:07:08 +0100
commit5cce8836ccffbaf71879b2efbb5788278e7f7e90 (patch)
treed05abaee56e6a8bacbe779518d6edd8ad226336e /erts/emulator/beam/external.c
parenta52c18365acb5ed55793351ff3b3776a2a848503 (diff)
downloadotp-5cce8836ccffbaf71879b2efbb5788278e7f7e90.tar.gz
otp-5cce8836ccffbaf71879b2efbb5788278e7f7e90.tar.bz2
otp-5cce8836ccffbaf71879b2efbb5788278e7f7e90.zip
erts: Fix faulty ASSERT for failed dec_term
when a recursive call to dec_term() has already done erts_factory_undo and set factory->hp to NULL.
Diffstat (limited to 'erts/emulator/beam/external.c')
-rw-r--r--erts/emulator/beam/external.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/external.c b/erts/emulator/beam/external.c
index 205a7711ec..186b250c7e 100644
--- a/erts/emulator/beam/external.c
+++ b/erts/emulator/beam/external.c
@@ -4010,7 +4010,7 @@ error:
factory->hp = hp; /* the largest must be the freshest */
}
}
- else ASSERT(factory->hp == hp);
+ else ASSERT(!factory->hp || factory->hp == hp);
error_hamt:
erts_factory_undo(factory);