diff options
author | mnag <mnag@FreeBSD.org> | 2008-09-07 23:05:44 +0800 |
---|---|---|
committer | mnag <mnag@FreeBSD.org> | 2008-09-07 23:05:44 +0800 |
commit | 8fa285ae396fb5432f01dd5d9249ec4ac61efb19 (patch) | |
tree | e50ae4a3ae20548a4d7271b9f290a7131712e2db /www/lighttpd | |
parent | 17f4fba9d639546434f48b9c59756250d1196475 (diff) | |
download | freebsd-ports-graphics-8fa285ae396fb5432f01dd5d9249ec4ac61efb19.tar.gz freebsd-ports-graphics-8fa285ae396fb5432f01dd5d9249ec4ac61efb19.tar.zst freebsd-ports-graphics-8fa285ae396fb5432f01dd5d9249ec4ac61efb19.zip |
- Fix small memleak in fastcgi module.
Submitted by: Chris Peiffer <chris__cabstand.com>
Diffstat (limited to 'www/lighttpd')
-rw-r--r-- | www/lighttpd/files/patch-src__mod_fastcgi.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/www/lighttpd/files/patch-src__mod_fastcgi.c b/www/lighttpd/files/patch-src__mod_fastcgi.c new file mode 100644 index 00000000000..13d15b75943 --- /dev/null +++ b/www/lighttpd/files/patch-src__mod_fastcgi.c @@ -0,0 +1,18 @@ +# +# http://trac.lighttpd.net/trac/changeset/2143 +# +Index: /branches/lighttpd-1.4.x/src/mod_fastcgi.c +=================================================================== +--- src/mod_fastcgi.c (revision 2119) ++++ src/mod_fastcgi.c (revision 2143) +@@ -2545,5 +2545,8 @@ + + if (HANDLER_ERROR != stat_cache_get_entry(srv, con, ds->value, &sce)) { +- data_string *dcls = data_string_init(); ++ data_string *dcls; ++ if (NULL == (dcls = (data_string *)array_get_unused_element(con->response.headers, TYPE_STRING))) { ++ dcls = data_response_init(); ++ } + /* found */ + http_chunk_append_file(srv, con, ds->value, 0, sce->st.st_size); + |