mirror of https://github.com/nodejs/node.git
Free pointer with delete, since created with new
parent
2641582399
commit
0d780fe6b8
|
@ -45,8 +45,8 @@ do { \
|
|||
TryCatch try_catch; \
|
||||
(*callback)->Call(Context::GetCurrent()->Global(), argc, argv); \
|
||||
if(try_catch.HasCaught()) \
|
||||
node::FatalException(try_catch); \
|
||||
free(callback); \
|
||||
node::FatalException(try_catch); \
|
||||
delete callback; \
|
||||
} \
|
||||
} while(0)
|
||||
|
||||
|
|
Loading…
Reference in New Issue