am f9b3bdbb: Merge "Fix bugs in ReleasePrimitiveArray."

* commit 'f9b3bdbb3032d7da3b7a7c58adea90de3077d925':
  Fix bugs in ReleasePrimitiveArray.