[core] remove srv->split_vals

personal/stbuehler/ci-build
Glenn Strauss 3 years ago
parent bcd5288557
commit 9858051d03
  1. 2
      src/base.h
  2. 2
      src/server.c
  3. 2
      src/t/test_request.c

@ -404,8 +404,6 @@ struct server {
/* caches */
mtime_cache_type mtime_cache[FILE_CACHE_MAX];
array *split_vals;
log_error_st *errh;
/* Timestamps */

@ -306,7 +306,6 @@ static server *server_init(void) {
srv->srvconf.compat_module_load = 1;
srv->srvconf.systemd_socket_activation = 0;
srv->split_vals = array_init();
srv->request_env = plugins_call_handle_request_env;
return srv;
@ -392,7 +391,6 @@ static void server_free(server *srv) {
}
array_free(srv->srvconf.modules);
array_free(srv->split_vals);
li_rand_cleanup();
chunkqueue_chunk_pool_free();

@ -453,7 +453,6 @@ int main (void)
memset(&srv, 0, sizeof(server));
srv.errh = log_error_st_init(&srv.cur_ts, &srv.last_generated_debug_ts);
srv.errh->errorlog_fd = -1; /* (disable) */
srv.split_vals = array_init();
memset(&con, 0, sizeof(connection));
con.proto = buffer_init();
@ -474,7 +473,6 @@ int main (void)
buffer_free(con.request.uri);
array_free(con.request.headers);
array_free(srv.split_vals);
log_error_st_free(srv.errh);
return 0;

Loading…
Cancel
Save