aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/core/ini.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/lib/core/ini.c b/src/lib/core/ini.c
index 14f337d..4f449c6 100644
--- a/src/lib/core/ini.c
+++ b/src/lib/core/ini.c
@@ -490,18 +490,12 @@ char *unquote(char *s) {
void ini_free(struct INIFILE **ini) {
for (size_t section = 0; section < (*ini)->section_count; section++) {
-#ifdef DEBUG
- SYSERROR("freeing section: %s", (*ini)->section[section]->key);
-#endif
+ SYSDEBUG("freeing section: %s", (*ini)->section[section]->key);
for (size_t data = 0; data < (*ini)->section[section]->data_count; data++) {
if ((*ini)->section[section]->data[data]) {
-#ifdef DEBUG
- SYSERROR("freeing data key: %s", (*ini)->section[section]->data[data]->key);
-#endif
+ SYSDEBUG("freeing data key: %s", (*ini)->section[section]->data[data]->key);
guard_free((*ini)->section[section]->data[data]->key);
-#ifdef DEBUG
- SYSERROR("freeing data value: %s", (*ini)->section[section]->data[data]->value);
-#endif
+ SYSDEBUG("freeing data value: %s", (*ini)->section[section]->data[data]->value);
guard_free((*ini)->section[section]->data[data]->value);
guard_free((*ini)->section[section]->data[data]);
}