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.