Using shared pointer to avoid leaking UnwindAssembly.
Stop leaking param.
Fix an other memory leak.