DMC: Fix memory leak when buffers are reused. Fix recording of modem signal states.