gnucash maint: Fix segfault in test-portfolios after debug build.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

gnucash maint: Fix segfault in test-portfolios after debug build.

John Ralls-4
Updated via  https://github.com/Gnucash/gnucash/commit/57e403b0 (commit)
        from  https://github.com/Gnucash/gnucash/commit/4c790b20 (commit)



commit 57e403b048083d7592450cf832aebb81de8b3681
Author: John Ralls <[hidden email]>
Date:   Sat Oct 12 09:29:40 2019 -0700

    Fix segfault in test-portfolios after debug build.
   
    gnc-clear-current-session deletes the pricedb so deleting it first
    is unnecessary. Deleting it first and not nulling the pointer in
    the book leads to accessing freed memory, and debug mode poisons
    that to force a crash when it happens.



Summary of changes:
 gnucash/report/standard-reports/test/test-portfolios.scm | 3 ---
 1 file changed, 3 deletions(-)

_______________________________________________
gnucash-patches mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-patches