Avoid potential memory leak in Rust parser

rust_parser::parse_field has some support for completion.  This code
allocates a rust_structop using plain 'new', then stores it somewhere.
However, between the allocation and the store, the function calls
"lex()", which might throw.  This would leak the rust_structop object.

This patch rearranges the code slightly to avoid the memory leak.


1 file changed