Fix memory leak when there are unread data in the star emulator RX buffers.
Related issue: #105 (closed)