diff --git a/DXFeedFramework/Native/Promise/NativePromise.swift b/DXFeedFramework/Native/Promise/NativePromise.swift index 403625b7c..f2e8ba109 100644 --- a/DXFeedFramework/Native/Promise/NativePromise.swift +++ b/DXFeedFramework/Native/Promise/NativePromise.swift @@ -72,6 +72,9 @@ class NativePromise { let listPointer = try ErrorCheck.nativeCall(thread, dxfg_Promise_List_EventType_getResult(thread, promiseEvents)) + defer { + _ = try? ErrorCheck.nativeCall(thread, dxfg_CList_EventType_release(thread, listPointer)) + } var results = [MarketEvent]() let size = listPointer.pointee.size for index in 0..