Filter: Make sure to release local on error
Reset tests: Use sandboxed index
Merge pull request #2299 from mekishizufu/fix_leaks

Plug some leaks