Fixed a memory bug in build_delay_list() (called by get residual). Some of the underlying code looks a little
funky, but I dont feel confident enough to try a fix, but will dig in if it appears to be a problem.
Authored by: tswift 2016-01-23
Parent: [r8589]
Child: [r8591]