diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-02 13:45:00 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-02 18:55:45 -0400 |
commit | 232763cb702e5b39ec5a051ec41582e42adaef59 (patch) | |
tree | cc27cbaf2550a579c04bb970b070f81d4769ca1b /src/ini.c | |
parent | 3ed78a832d7de7649a0e2840bbba200bea4b650c (diff) | |
download | stasis-232763cb702e5b39ec5a051ec41582e42adaef59.tar.gz |
Lock output behind DEBUG define
Diffstat (limited to 'src/ini.c')
-rw-r--r-- | src/ini.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -250,9 +250,18 @@ 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 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 guard_free((*ini)->section[section]->data[data]->key); +#ifdef DEBUG + SYSERROR("freeing data value: %s", (*ini)->section[section]->data[data]->value); +#endif guard_free((*ini)->section[section]->data[data]->value); guard_free((*ini)->section[section]->data[data]); } |