diff --git a/library/cpp/yt/memory/leaky_ref_counted_singleton-inl.h b/library/cpp/yt/memory/leaky_ref_counted_singleton-inl.h index 1fba63c42..f4bccbbaf 100644 --- a/library/cpp/yt/memory/leaky_ref_counted_singleton-inl.h +++ b/library/cpp/yt/memory/leaky_ref_counted_singleton-inl.h @@ -30,9 +30,6 @@ TIntrusivePtr LeakyRefCountedSingleton(TArgs&&... args) auto ptr = New(std::forward(args)...); Ref(ptr.Get()); Ptr.store(ptr.Get()); -#if defined(_asan_enabled_) - NSan::MarkAsIntentionallyLeaked(ptr.Get()); -#endif }); return Ptr.load(); diff --git a/yt/yt/python/yson/serialize.cpp b/yt/yt/python/yson/serialize.cpp index f9fa7444c..76e658672 100644 --- a/yt/yt/python/yson/serialize.cpp +++ b/yt/yt/python/yson/serialize.cpp @@ -187,11 +187,8 @@ void SerializePythonInteger(const Py::Object& obj, IYsonConsumer* consumer, TCon // TODO(asaitgalin): Make singleton with all global variables and // free all objects there before interpreter exit. static auto* SignedInt64Min = PyLong_FromLongLong(std::numeric_limits::min()); - NSan::MarkAsIntentionallyLeaked(SignedInt64Min); static auto* SignedInt64Max = PyLong_FromLongLong(std::numeric_limits::max()); - NSan::MarkAsIntentionallyLeaked(SignedInt64Max); static auto* UnsignedInt64Max = PyLong_FromUnsignedLongLong(std::numeric_limits::max()); - NSan::MarkAsIntentionallyLeaked(UnsignedInt64Max); if (PyObject_RichCompareBool(UnsignedInt64Max, obj.ptr(), Py_LT) == 1 || PyObject_RichCompareBool(obj.ptr(), SignedInt64Min, Py_LT) == 1)