diff --git a/ffi/ffi_context.nim b/ffi/ffi_context.nim index 6cf0a75..3a1bccc 100644 --- a/ffi/ffi_context.nim +++ b/ffi/ffi_context.nim @@ -218,7 +218,7 @@ proc ffiThreadBody[T](ctx: ptr FFIContext[T]) {.thread.} = waitFor ffiRun(ctx) -proc closeResources*[T](ctx: ptr FFIContext[T]): Result[void, string] = +proc cleanup*[T](ctx: ptr FFIContext[T]): Result[void, string] = ## Closes file descriptors and deinits the lock. Does NOT free ctx memory. ## Used by initContextResources error paths and pool destroy, where ctx is ## not heap-allocated (pool slots live in a fixed array, not on the heap).