summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-01-06 19:12:38 +0100
committerTom Gundersen <teg@jklm.no>2015-01-08 17:09:45 +0100
commita0539d7753d6a3ede87bf5e57d7c40d5bc1dc230 (patch)
treeca8f5e9a4f793b3224681d62a69c710e0f4721ff /src/shared
parent34a317e1ccb0053d49383eb5e2f73dec97affc4c (diff)
path-util: plug leak
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/path-util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/path-util.c b/src/shared/path-util.c
index ad9dc882b2..ee87c7493d 100644
--- a/src/shared/path-util.c
+++ b/src/shared/path-util.c
@@ -524,6 +524,9 @@ fallback:
return -errno;
}
+ free(parent);
+ parent = NULL;
+
r = path_get_parent(t, &parent);
if (r < 0)
return r;