Skip to content

Commit b9eadc1

Browse files
committed
ATRONIX: 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. (cherry picked from commit 5057ccc)
1 parent dae8adf commit b9eadc1

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
@@ -516,6 +516,7 @@ const REBPOOLSPEC Mem_Pool_Spec[MAX_POOLS] =
516516
REBCNT n;
517517

518518
PG_Reb_Stats->Series_Freed++;
519+
PG_Reb_Stats->Series_Memory -= SERIES_TOTAL(series);
519520

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

0 commit comments

Comments
 (0)