am 9883083a: am 412d55c7: Merge "fix fd leaking and deallocation freed resource"

* commit '9883083afdb09845b0364f04c18d4fff24a89036':
  fix fd leaking and deallocation freed resource