Skip to content
Browse files

Fix mortal-scalar leak.

Code was calling sv_2mortal() to create temps outside of a SAVETMPS/FREETMPS
scope; this leaked certain temp scalars pretty reliably.
  • Loading branch information...
1 parent fbacb26 commit 197a76fe764eda65d257f7d624f1e41215f945b8 @stash committed Jul 15, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 Feersum.xs
View
5 Feersum.xs
@@ -1946,8 +1946,6 @@ call_request_callback (struct feer_conn *c)
trace("leaving request callback\n");
PUTBACK;
- FREETMPS;
- LEAVE;
if (request_cb_is_psgi && likely(returned >= 1)) {
feersum_handle_psgi_response(aTHX_ c, psgi_response, 1); // can_recurse
@@ -1956,6 +1954,9 @@ call_request_callback (struct feer_conn *c)
c->in_callback--;
SvREFCNT_dec(c->self);
+
+ FREETMPS;
+ LEAVE;
}
static void

0 comments on commit 197a76f

Please sign in to comment.
Something went wrong with that request. Please try again.