am d0ff4849: am adabe566: am 31cfa600: Merge "Fixed memory leak when using transport:serial."

* commit 'd0ff48498ac9efc242c047dfe66459f29aadc918':
  Fixed memory leak when using transport:serial.