diff options
author | Tom Gundersen <teg@jklm.no> | 2015-01-06 19:12:38 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-01-08 17:09:45 +0100 |
commit | a0539d7753d6a3ede87bf5e57d7c40d5bc1dc230 (patch) | |
tree | ca8f5e9a4f793b3224681d62a69c710e0f4721ff | |
parent | 34a317e1ccb0053d49383eb5e2f73dec97affc4c (diff) |
path-util: plug leak
-rw-r--r-- | src/shared/path-util.c | 3 |
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; |