diff --git a/src/node_api.cc b/src/node_api.cc index b61964cf96..035929e212 100644 --- a/src/node_api.cc +++ b/src/node_api.cc @@ -2290,6 +2290,10 @@ napi_status napi_create_external_buffer(napi_env env, *result = v8impl::JsValueFromV8LocalValue(maybe.ToLocalChecked()); return GET_RETURN_STATUS(); + // Tell coverity that 'finalizer' should not be freed when we return + // as it will be deleted when the buffer to which it is associated + // is finalized. + // coverity[leaked_storage] } napi_status napi_create_buffer_copy(napi_env env,