Release unique_fd when returning as int

Otherwise it gets closed. Ideally we should pass unique_fd all along,
but we are restricted by the ndk interface which needs to be C
compatible.

Test: manual
Change-Id: I2d7312784a8d703deb10e50e83b74db7e8f7c87c
Merged-In: I2d7312784a8d703deb10e50e83b74db7e8f7c87c
1 file changed
tree: f01fcdc4dbec894a26703c8bf98853e83fadc4a3
  1. incfs/
  2. libdataloader/
  3. .clang-format
  4. PREUPLOAD.cfg