Refactor memory management of RCTModuleMethod's arguments
Refactor memory management of RCTModuleMethod's arguments

Reviewed By: javache

Differential Revision: D5589246

fbshipit-source-id: a4e70268c818f386784b3e20f0fb97a1c89092d3

exponentjs/react-native,javache/react-native,Bhullnatik/react-native,pandiaraj44/react-native,ptmt/react-native-macos,rickbeerendonk/react-native,kesha-antonov/react-native,exponentjs/react-native,frantic/react-native,javache/react-native,makadaw/react-native,cdlewis/react-native,exponentjs/react-native,ptmt/react-native-macos,rickbeerendonk/react-native,hoastoolshop/react-native,myntra/react-native,exponentjs/react-native,frantic/react-native,rickbeerendonk/react-native,cdlewis/react-native,kesha-antonov/react-native,jevakallio/react-native,kesha-antonov/react-native,pandiaraj44/react-native,javache/react-native,javache/react-native,arthuralee/react-native,janicduplessis/react-native,hammerandchisel/react-native,dikaiosune/react-native,hammerandchisel/react-native,cdlewis/react-native,dikaiosune/react-native,makadaw/react-native,kesha-antonov/react-native,javache/react-native,Bhullnatik/react-native,hammerandchisel/react-native,Bhullnatik/react-native,exponentjs/react-native,ptmt/react-native-macos,hammerandchisel/react-native,exponent/react-native,hoangpham95/react-native,cdlewis/react-native,myntra/react-native,dikaiosune/react-native,exponent/react-native,myntra/react-native,cdlewis/react-native,hoastoolshop/react-native,exponent/react-native,facebook/react-native,cdlewis/react-native,kesha-antonov/react-native,rickbeerendonk/react-native,Bhullnatik/react-native,makadaw/react-native,cdlewis/react-native,jevakallio/react-native,frantic/react-native,janicduplessis/react-native,rickbeerendonk/react-native,jevakallio/react-native,myntra/react-native,arthuralee/react-native,jevakallio/react-native,hoangpham95/react-native,janicduplessis/react-native,jevakallio/react-native,Bhullnatik/react-native,hoastoolshop/react-native,dikaiosune/react-native,javache/react-native,rickbeerendonk/react-native,pandiaraj44/react-native,javache/react-native,farazs/react-native,facebook/react-native,exponentjs/react-native,dikaiosune/react-native,hammerandchisel/react-native,farazs/react-native,janicduplessis/react-native,hoangpham95/react-native,frantic/react-native,kesha-antonov/react-native,rickbeerendonk/react-native,jevakallio/react-native,hammerandchisel/react-native,makadaw/react-native,pandiaraj44/react-native,rickbeerendonk/react-native,facebook/react-native,hoangpham95/react-native,hammerandchisel/react-native,javache/react-native,hammerandchisel/react-native,pandiaraj44/react-native,facebook/react-native,hoangpham95/react-native,arthuralee/react-native,hoangpham95/react-native,hoastoolshop/react-native,jevakallio/react-native,exponent/react-native,arthuralee/react-native,exponent/react-native,rickbeerendonk/react-native,makadaw/react-native,hoastoolshop/react-native,cdlewis/react-native,ptmt/react-native-macos,dikaiosune/react-native,farazs/react-native,makadaw/react-native,janicduplessis/react-native,frantic/react-native,pandiaraj44/react-native,dikaiosune/react-native,hoangpham95/react-native,ptmt/react-native-macos,pandiaraj44/react-native,hoangpham95/react-native,facebook/react-native,exponent/react-native,ptmt/react-native-macos,arthuralee/react-native,pandiaraj44/react-native,Bhullnatik/react-native,exponent/react-native,myntra/react-native,farazs/react-native,hoastoolshop/react-native,makadaw/react-native,myntra/react-native,myntra/react-native,javache/react-native,jevakallio/react-native,dikaiosune/react-native,janicduplessis/react-native,farazs/react-native,facebook/react-native,myntra/react-native,farazs/react-native,farazs/react-native,exponent/react-native,ptmt/react-native-macos,exponentjs/react-native,cdlewis/react-native,hoastoolshop/react-native,hoastoolshop/react-native,Bhullnatik/react-native,makadaw/react-native,myntra/react-native,facebook/react-native,farazs/react-native,farazs/react-native,kesha-antonov/react-native,exponentjs/react-native,janicduplessis/react-native,facebook/react-native,jevakallio/react-native,kesha-antonov/react-native,ptmt/react-native-macos,facebook/react-native,makadaw/react-native,Bhullnatik/react-native,janicduplessis/react-native,kesha-antonov/react-native