diff options
| author | jvoisin | 2021-05-08 17:14:46 +0200 |
|---|---|---|
| committer | jvoisin | 2021-05-08 17:14:46 +0200 |
| commit | 194b0bc9f0a4699854ea314ffa23e59f8082ddae (patch) | |
| tree | e4ff10b44a831bac57ebad21abef1258a5423020 /src/snuffleupagus.c | |
| parent | ad623f1d78151dfe2eaee85e93ed1058be1c7f91 (diff) | |
Remove some memory-leaks
Diffstat (limited to 'src/snuffleupagus.c')
| -rw-r--r-- | src/snuffleupagus.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/snuffleupagus.c b/src/snuffleupagus.c index f192dd2..79a3003 100644 --- a/src/snuffleupagus.c +++ b/src/snuffleupagus.c | |||
| @@ -154,8 +154,11 @@ PHP_MSHUTDOWN_FUNCTION(snuffleupagus) { | |||
| 154 | FREE_LST_DISABLE(config_disabled_functions_reg_ret->disabled_functions); | 154 | FREE_LST_DISABLE(config_disabled_functions_reg_ret->disabled_functions); |
| 155 | #undef FREE_LST_DISABLE | 155 | #undef FREE_LST_DISABLE |
| 156 | 156 | ||
| 157 | sp_list_node *_n = SNUFFLEUPAGUS_G(config).config_cookie->cookies; | ||
| 158 | sp_cookie_list_free(_n); | ||
| 159 | sp_list_free(_n); | ||
| 160 | |||
| 157 | #define FREE_LST(L) sp_list_free(SNUFFLEUPAGUS_G(config).L); | 161 | #define FREE_LST(L) sp_list_free(SNUFFLEUPAGUS_G(config).L); |
| 158 | FREE_LST(config_cookie->cookies); | ||
| 159 | FREE_LST(config_eval->blacklist); | 162 | FREE_LST(config_eval->blacklist); |
| 160 | FREE_LST(config_eval->whitelist); | 163 | FREE_LST(config_eval->whitelist); |
| 161 | FREE_LST(config_wrapper->whitelist); | 164 | FREE_LST(config_wrapper->whitelist); |
