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_skeleton.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_skeleton.c')
-rw-r--r-- | src/mod_skeleton.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/mod_skeleton.c b/src/mod_skeleton.c index 9754fe8d..ca91b75a 100644 --- a/src/mod_skeleton.c +++ b/src/mod_skeleton.c @@ -59,18 +59,6 @@ INIT_FUNC(mod_skeleton_init) { return calloc(1, sizeof(plugin_data)); } -/* destroy the plugin data */ -FREE_FUNC(mod_skeleton_free) { - plugin_data *p = p_d; - if (!p) return HANDLER_GO_ON; - UNUSED(srv); - - free(p->cvlist); - free(p); - - return HANDLER_GO_ON; -} - /* handle plugin config and check values */ static void mod_skeleton_merge_config_cpv(plugin_config * const pconf, const config_plugin_value_t * const cpv) { @@ -170,7 +158,6 @@ int mod_skeleton_plugin_init(plugin *p) { p->version = LIGHTTPD_VERSION_ID; p->name = "skeleton"; p->init = mod_skeleton_init; - p->cleanup = mod_skeleton_free; p->set_defaults= mod_skeleton_set_defaults; p->handle_uri_clean = mod_skeleton_uri_handler; |