Fix Crash

Please consider
https://github.com/dothebart/collectd/blob/e09d935fc536cbfe043527e4499b88916c3ea8b7/src/configfile.c