Skip to content

Commit 5057ccc

Browse files
committed
Decrease the Series_Memory when the series is freed
Or this stat doesn't make much sense. With this change, it now refers to the series memory that's in use.
1 parent 64ab68a commit 5057ccc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/m-pools.c

+1
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ const REBPOOLSPEC Mem_Pool_Spec[MAX_POOLS] =
518518
REBCNT n;
519519

520520
PG_Reb_Stats->Series_Freed++;
521+
PG_Reb_Stats->Series_Memory -= SERIES_TOTAL(series);
521522

522523
// Remove series from expansion list, if found:
523524
for (n = 1; n < MAX_EXPAND_LIST; n++) {

0 commit comments

Comments
 (0)