Skip to content

napi: supress invalid coverity leak message

Rodrigo Muino Tomonari requested to merge github/fork/mhdawson/cover2 into master

Coverity was complaining that finalizer was being leaked in this method, however it should be freed when the buffer is finalized so I believe the message is invalid.

I don't think we can test this locally, but based on some googling and looking were the same comment is used in src/node.cc I think this should do the trick.

Add the required comments to suppress the warning.

  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows [commit guidelines][]
Affected core subsystem(s)

napi

Merge request reports

Loading