summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-12-16 22:24:54 +0100
committerAnthony G. Basile <blueness@gentoo.org>2014-12-20 10:05:27 -0500
commit8170dcd3695d60b456e28125f53874ef686128ca (patch)
tree955b4a636ead26960bd22fb360eec7b7df009398 /src/shared
parent853a86e6a93326f4936b7a25741394d66b555991 (diff)
shared: path-util - memory leak
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared')
-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 5dfa8266ec..4367fa7088 100644
--- a/src/shared/path-util.c
+++ b/src/shared/path-util.c
@@ -183,6 +183,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;
}