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_proxy.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_proxy.c')
-rw-r--r-- | src/mod_proxy.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mod_proxy.c b/src/mod_proxy.c index 69d226fe..fdc0c4fb 100644 --- a/src/mod_proxy.c +++ b/src/mod_proxy.c @@ -92,12 +92,9 @@ static void mod_proxy_free_config(plugin_data * const p) FREE_FUNC(mod_proxy_free) { - plugin_data *p = p_d; - if (!p) return HANDLER_GO_ON; - + plugin_data * const p = p_d; mod_proxy_free_config(p); - - return gw_free(srv, p); + gw_free(p); } static void mod_proxy_merge_config_cpv(plugin_config * const pconf, const config_plugin_value_t * const cpv) |