Add missing resource release