diff --git a/src/file.cc b/src/file.cc index 2f7dbeb338..fc8af092a2 100644 --- a/src/file.cc +++ b/src/file.cc @@ -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)