Please free strings *after* printing them ;-)

Signed-off-by: Florian Forster <octo@collectd.org>