diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2015-03-22 15:04:14 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2016-07-14 16:52:57 -0500 |
commit | 3a1262703fd20d2e8288d13d908fb282c77d1793 (patch) | |
tree | 9dc39a57e849c7543ea153f59f431669d9b0a666 /src/librc/librc-misc.c | |
parent | 20035210bdf5d5729734457f35f5f32a53a5b3ad (diff) |
Remove the DEBUG_MEMORY macro
This fixes #43.
Diffstat (limited to 'src/librc/librc-misc.c')
-rw-r--r-- | src/librc/librc-misc.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/librc/librc-misc.c b/src/librc/librc-misc.c index d5589411..45bdb7ae 100644 --- a/src/librc/librc-misc.c +++ b/src/librc/librc-misc.c @@ -404,6 +404,12 @@ librc_hidden_def(rc_config_value) * each rc_conf_value call */ static RC_STRINGLIST *rc_conf = NULL; +static void +_free_rc_conf(void) +{ + rc_stringlist_free(rc_conf); +} + char * rc_conf_value(const char *setting) { @@ -413,17 +419,13 @@ rc_conf_value(const char *setting) if (! rc_conf) { rc_conf = rc_config_load(RC_CONF); -#ifdef DEBUG_MEMORY atexit(_free_rc_conf); -#endif /* Support old configs. */ if (exists(RC_CONF_OLD)) { old = rc_config_load(RC_CONF_OLD); TAILQ_CONCAT(rc_conf, old, entries); -#ifdef DEBUG_MEMORY free(old); -#endif } rc_conf = rc_config_directory(rc_conf); @@ -443,11 +445,3 @@ rc_conf_value(const char *setting) return rc_config_value(rc_conf, setting); } librc_hidden_def(rc_conf_value) - -#ifdef DEBUG_MEMORY -static void -_free_rc_conf(void) -{ - rc_stringlist_free(rc_conf); -} -#endif |