diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2019-11-19 03:39:40 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-07-08 18:08:51 -0400 |
commit | b73949e03f72349b2ce90276d275487044e26c67 (patch) | |
tree | 035b3ba71163196ff81497bd2734840294545c50 /src/mod_staticfile.c | |
parent | ea75c0b87dc83892cca621655c22d8ff93540443 (diff) | |
download | lighttpd-git-b73949e03f72349b2ce90276d275487044e26c67.tar.gz |
[multiple] plugin.c handles common FREE_FUNC code
(simpler for modules; less boilerplate to cut-n-paste)
Diffstat (limited to 'src/mod_staticfile.c')
-rw-r--r-- | src/mod_staticfile.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mod_staticfile.c b/src/mod_staticfile.c index cb5fdc35..0e640c44 100644 --- a/src/mod_staticfile.c +++ b/src/mod_staticfile.c @@ -33,17 +33,6 @@ INIT_FUNC(mod_staticfile_init) { return calloc(1, sizeof(plugin_data)); } -FREE_FUNC(mod_staticfile_free) { - plugin_data *p = p_d; - if (!p) return HANDLER_GO_ON; - UNUSED(srv); - - free(p->cvlist); - free(p); - - return HANDLER_GO_ON; -} - static void mod_staticfile_merge_config_cpv(plugin_config * const pconf, const config_plugin_value_t * const cpv) { switch (cpv->k_id) { /* index into static config_plugin_keys_t cpk[] */ case 0: /* static-file.exclude-extensions */ @@ -183,7 +172,6 @@ int mod_staticfile_plugin_init(plugin *p) { p->init = mod_staticfile_init; p->handle_subrequest_start = mod_staticfile_subrequest; p->set_defaults = mod_staticfile_set_defaults; - p->cleanup = mod_staticfile_free; return 0; } |