Skip to content

Commit

Permalink
src: fix leak in ObjectWrap instance set/getters
Browse files Browse the repository at this point in the history
Fixes: #891

PR-URL: #899
Fixes: #891
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
  • Loading branch information
KevinEady authored and mhdawson committed Feb 12, 2021
1 parent b6e844e commit a575a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion napi-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -3262,7 +3262,7 @@ inline void InstanceWrap<T>::AttachPropData(napi_env env,
napi_value value,
const napi_property_descriptor* prop) {
napi_status status;
if (prop->method != nullptr && !(prop->attributes & napi_static)) {
if (!(prop->attributes & napi_static)) {
if (prop->method == T::InstanceVoidMethodCallbackWrapper) {
status = Napi::details::AttachData(env,
value,
Expand Down

0 comments on commit a575a6e

Please sign in to comment.