From 8fa285ae396fb5432f01dd5d9249ec4ac61efb19 Mon Sep 17 00:00:00 2001 From: mnag Date: Sun, 7 Sep 2008 15:05:44 +0000 Subject: - Fix small memleak in fastcgi module. Submitted by: Chris Peiffer --- www/lighttpd/files/patch-src__mod_fastcgi.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 www/lighttpd/files/patch-src__mod_fastcgi.c (limited to 'www') 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 000000000000..13d15b759430 --- /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); + -- cgit