Memory release fix.