k10_uart get rid of malloc