summaryrefslogtreecommitdiff
path: root/src/shared/path-util.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-01-06 19:12:38 +0100
committerAnthony G. Basile <blueness@gentoo.org>2015-01-17 09:49:50 -0500
commita9421a42aaae69d59e63c6cf499aee9f4fc4f29c (patch)
treedf7eae05071c030c84ed633e282f6c54fac7aae1 /src/shared/path-util.c
parentf3965062948a086256b7ff6e317954b789fa13c3 (diff)
path-util: plug leak
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/path-util.c')
-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 a94de4af81..b1f997aef3 100644
--- a/src/shared/path-util.c
+++ b/src/shared/path-util.c
@@ -385,6 +385,9 @@ fallback:
return -errno;
}
+ free(parent);
+ parent = NULL;
+
r = path_get_parent(t, &parent);
if (r < 0)
return r;