summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-12-16 22:24:54 +0100
committerTom Gundersen <teg@jklm.no>2014-12-16 22:54:04 +0100
commit3542eac7f98e74ca106ac6df81b3b3cb158b35be (patch)
tree0759430c26020c1fd779540fcba298d61facc4b8
parentc487c9cec012282273e16f3110734309934a1281 (diff)
shared: path-util - memory leak
-rw-r--r--src/shared/path-util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/path-util.c b/src/shared/path-util.c
index dcc8321f50..3256deeec1 100644
--- a/src/shared/path-util.c
+++ b/src/shared/path-util.c
@@ -306,6 +306,7 @@ char **path_strv_resolve(char **l, const char *prefix) {
} else {
/* canonicalized path goes outside of
* prefix, keep the original path instead */
+ free(u);
u = orig;
orig = NULL;
}