void free_tconfig_r(struct tconfig_block *tcfg) { if (tcfg->child) free_tconfig_r(tcfg->child); if (tcfg->next) free_tconfig_r(tcfg->next); free(tcfg->key); free(tcfg->value); free(tcfg); }