[ScrubBusiness.c] don't reassign splits when restarting for loop

this plugs GList* leak upon restart
This commit is contained in:
Christopher Lam committed 2026-10-02 05:51:40 +08:00
1 parent 56ccad9a66
commit 9414fdf546
1 file changed
+3 -2
+3 -2
View File
@@ -693,10 +693,11 @@ gncScrubBusinessAccountSplits (Account *acc, QofPercentageFunc percentagefunc)
PINFO ("Cleaning up superfluous lot links in account %s\n", str);
xaccAccountBeginEdit(acc);
restart:
curr_split_no = 0;
splits = xaccAccountGetSplitList(acc);
split_count = xaccAccountGetSplitsSize (acc);
restart:
curr_split_no = 0;
for (node = splits; node; node = node->next)
{
Split *split = node->data;