Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Free pointer with delete, since created with new
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jun 10, 2009
1 parent 2641582 commit 0d780fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/file.cc
Expand Up @@ -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)

Expand Down

0 comments on commit 0d780fe

Please sign in to comment.