projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2891790
)
vm: fix Persistent<Context> leak
author
Ben Noordhuis
<info@bnoordhuis.nl>
Fri, 23 Aug 2013 00:01:29 +0000
(
02:01
+0200)
committer
Ben Noordhuis
<info@bnoordhuis.nl>
Fri, 23 Aug 2013 00:07:24 +0000
(
02:07
+0200)
src/node_contextify.cc
patch
|
blob
|
history
diff --git
a/src/node_contextify.cc
b/src/node_contextify.cc
index
0f1b458
..
ef2ef89
100644
(file)
--- a/
src/node_contextify.cc
+++ b/
src/node_contextify.cc
@@
-177,9
+177,7
@@
class ContextifyContext : ObjectWrap {
ContextifyContext* ctx =
ObjectWrap::Unwrap<ContextifyContext>(hidden_context);
- Persistent<Context> context;
- context.Reset(node_isolate, ctx->context_);
- return PersistentToLocal(node_isolate, context);
+ return PersistentToLocal(node_isolate, ctx->context_);
}