config-parser: fix mem leak

This commit is contained in:
Thomas Hindoe Paaboel Andersen 2014-08-31 23:13:12 +02:00
parent e4c38cc36e
commit 9e60277835

View file

@ -710,6 +710,7 @@ int config_parse_strv(const char *unit,
if (!utf8_is_valid(n)) {
log_invalid_utf8(unit, LOG_ERR, filename, line, EINVAL, rvalue);
free(n);
continue;
}