Bug 1019825 - Fix leak in error path in JS_NewRegExpObject(). r=mccr8.

--HG--
extra : rebase_source : be80e04714af0d3ea1108be562047195e1fa3f0a