bitcoin/bitcoin — pull request #1774 by luke-jr (2012-09-01 22:14:31+00:00)
Title: Bugfix: Require OrderedTxItems to provide properly scoped accounting entry list

OrderedTxItems returns a multimap of pointers, but needs a place to store the actual CAccountingEntries it points to. It had been using a stack item, which was clobbered as soon as it returned, resulting in undefined behaviour.

This fixes at least bug #1768.