aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-06-03 08:31:28 +0200
committerTristan Gingold <tgingold@free.fr>2022-06-03 08:31:28 +0200
commit92fb780933886e36a178a0b86c61ba590602145f (patch)
tree046bf57d10788f40140c099e25aae42adfbf86b2
parent696ac56744d9ec0177ea75fb166baf622fb905dd (diff)
downloadghdl-92fb780933886e36a178a0b86c61ba590602145f.tar.gz
ghdl-92fb780933886e36a178a0b86c61ba590602145f.tar.bz2
ghdl-92fb780933886e36a178a0b86c61ba590602145f.zip
areapools: avoid a crash on release with empty block
-rw-r--r--src/areapools.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/areapools.adb b/src/areapools.adb
index dd2e38257..6b49b2d64 100644
--- a/src/areapools.adb
+++ b/src/areapools.adb
@@ -105,6 +105,7 @@ package body Areapools is
if Erase_When_Released
and then M.Last /= null
+ and then M.Next_Use /= 0
then
declare
Last : Size_Type;