fix: possible leaking error