[csv-transactions-export] couple leaks plugged

This commit is contained in:
Christopher Lam 2022-07-27 00:21:01 +08:00
parent 6b64c70c64
commit 0e81d42e08

View File

@ -393,6 +393,7 @@ add_price (gchar *so_far, Split *split, gboolean t_void, CsvExportInfo *info)
conv = csv_txn_test_field_string (info, string_amount);
result = g_strconcat (so_far, conv, info->end_sep, EOLSTR, NULL);
g_free (conv);
g_free (so_far);
return result;
}
@ -649,6 +650,7 @@ void csv_transactions_export (CsvExportInfo *info)
DEBUG("Account being processed is : %s", xaccAccountGetName (acc));
account_splits (info, acc, fh);
}
g_list_free (info->csva.account_list);
}
else
account_splits (info, info->account, fh);