implement cleanup of conf_t structure

Signed-off-by: Janos Laube <janos.dev@gmail.com>