Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

git-svn-id: svn://cherokee-project.com/cherokee/trunk@294 5dc97367-97…

…f1-0310-9951-d761b3857238
  • Loading branch information...
commit 623deda79c4736557af4e2bad2b7fc917f8ba3e1 1 parent a371a34
@alobbs alobbs authored
View
2  cherokee/exts_table.c
@@ -55,6 +55,8 @@ cherokee_exts_table_free (cherokee_exts_table_t *et)
{
cherokee_list_free (&et->list, (void *)cherokee_config_entry_free);
cherokee_table_clean (&et->table);
+
+ free (et);
return ret_ok;
}
View
2  cherokee/handler_cgi.c
@@ -254,7 +254,7 @@ cherokee_handler_cgi_free (cherokee_handler_cgi_t *cgi)
ret_t
cherokee_handler_cgi_props_free (cherokee_handler_cgi_props_t *props)
{
- return cherokee_handler_props_free_base (HANDLER_PROPS(props));
+ return cherokee_handler_cgi_base_props_free (PROP_CGI_BASE(props));
}
View
15 cherokee/handler_cgi_base.c
@@ -103,7 +103,7 @@ static env_item_t *
env_item_new (cherokee_buffer_t *key, cherokee_buffer_t *val)
{
env_item_t *n = malloc (sizeof (env_item_t));
-
+
INIT_LIST_HEAD (&n->entry);
cherokee_buffer_init (&n->env);
cherokee_buffer_init (&n->val);
@@ -124,6 +124,19 @@ env_item_free (void *p)
free (p);
}
+ret_t
+cherokee_handler_cgi_base_props_free (cherokee_handler_cgi_base_props_t *props)
+{
+ list_t *i, *tmp;
+
+ cherokee_buffer_mrproper (&props->script_alias);
+
+ list_for_each_safe (i, tmp, &props->system_env) {
+ env_item_free (i);
+ }
+
+ return cherokee_handler_props_free_base (HANDLER_PROPS(props));
+}
ret_t
cherokee_handler_cgi_base_configure (cherokee_config_node_t *conf, cherokee_server_t *srv, cherokee_handler_props_t **_props)
View
1  cherokee/handler_cgi_base.h
@@ -107,6 +107,7 @@ ret_t cherokee_handler_cgi_base_build_basic_env (cherokee_handler_cgi_base_t
cherokee_buffer_t *tmp);
ret_t cherokee_handler_cgi_base_configure (cherokee_config_node_t *conf, cherokee_server_t *srv, cherokee_handler_props_t **props);
+ret_t cherokee_handler_cgi_base_props_free (cherokee_handler_cgi_base_props_t *props);
#endif /* CHEROKEE_HANDLER_CGI_BASE_H */
View
2  cherokee/handler_fastcgi.c
@@ -43,7 +43,7 @@ static ret_t
props_free (cherokee_handler_fastcgi_props_t *props)
{
// TODO: Free the structure content
- return cherokee_handler_props_free_base (HANDLER_PROPS(props));
+ return cherokee_handler_cgi_base_props_free (PROP_CGI_BASE(props));
}
static ret_t
View
4 cherokee/handler_fcgi.c
@@ -202,8 +202,8 @@ props_free (cherokee_handler_fcgi_props_t *props)
list_for_each_safe (i, tmp, &props->server_list) {
cherokee_ext_source_free (EXT_SOURCE(i));
}
-
- return cherokee_handler_props_free_base (HANDLER_PROPS(props));
+
+ return cherokee_handler_cgi_base_props_free (PROP_CGI_BASE(props));
}
View
2  cherokee/handler_scgi.c
@@ -48,7 +48,7 @@ props_free (cherokee_handler_scgi_props_t *props)
// TODO: Free scgi_env_ref
- return cherokee_handler_props_free_base (HANDLER_PROPS(props));
+ return cherokee_handler_cgi_base_props_free (PROP_CGI_BASE(props));
}
static ret_t
View
1  cherokee/server.c
@@ -1637,7 +1637,6 @@ cherokee_server_handle_panic (cherokee_server_t *srv)
}
cherokee_buffer_mrproper (&cmd);
-
fin:
abort();
}
Please sign in to comment.
Something went wrong with that request. Please try again.