summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-08-31 23:13:12 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-08-31 23:25:34 +0200
commit9e60277835e61597011358afcdbfb3dd712ce128 (patch)
tree31d08df98c04ffea06c3b42cdc4f91d259fd3622
parente4c38cc36e287d46a56a98066cc368ee6fdd1968 (diff)
config-parser: fix mem leak
-rw-r--r--src/shared/conf-parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c
index 439cfc58fc..ee6de653e1 100644
--- a/src/shared/conf-parser.c
+++ b/src/shared/conf-parser.c
@@ -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;
}