diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-03-13 00:29:58 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-03-13 00:29:58 +0100 |
commit | b2e2e4831c49e58a9ae11dc33eb09feb6f1e04a8 (patch) | |
tree | cf35a1da80a70f86fa64336f83b536bcb0fb8872 /src/config-ini.c | |
parent | Outcomment .gitignore line that erroneously blocks the src/redshift-gtk dir (diff) | |
download | redshift-ng-b2e2e4831c49e58a9ae11dc33eb09feb6f1e04a8.tar.gz redshift-ng-b2e2e4831c49e58a9ae11dc33eb09feb6f1e04a8.tar.bz2 redshift-ng-b2e2e4831c49e58a9ae11dc33eb09feb6f1e04a8.tar.xz |
Free resources from config-ini.c on exit
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/config-ini.c')
-rw-r--r-- | src/config-ini.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config-ini.c b/src/config-ini.c index 4541a0f..8c82d72 100644 --- a/src/config-ini.c +++ b/src/config-ini.c @@ -216,15 +216,19 @@ config_ini_free(config_ini_state_t *state) while (section != NULL) { config_ini_setting_t *setting = section->settings; + config_ini_section_t *section_prev = section; while (setting != NULL) { + config_ini_setting_t *setting_prev = setting; free(setting->name); free(setting->value); setting = setting->next; + free(setting_prev); } free(section->name); section = section->next; + free(section_prev); } } |