Fixed a memory handling bug in the new C MISO code, that (most probably) caused some weird bugs.