Skip to content

Commit

Permalink
Fixed memory leak $env->{'psgi.version'}
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritloose committed Oct 18, 2009
1 parent 64db7eb commit 22876bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod_psgi.c
Expand Up @@ -237,7 +237,7 @@ static SV *make_env(request_rec *r, psgi_dir_config *c)
version = newAV();
av_push(version, newSViv(1));
av_push(version, newSViv(0));
(void) hv_store(env, "psgi.version", 12, newRV_inc((SV *) version), 0);
(void) hv_store(env, "psgi.version", 12, newRV_noinc((SV *) version), 0);

url_scheme = apr_table_get(r->subprocess_env, "HTTPS") == NULL ? "http" : "https";
(void) hv_store(env, "psgi.url_scheme", 15, newSVpv(url_scheme, 0), 0);
Expand Down

0 comments on commit 22876bc

Please sign in to comment.