diff options
author | Tom Gundersen <teg@jklm.no> | 2015-01-06 19:12:38 +0100 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-01-17 09:49:50 -0500 |
commit | a9421a42aaae69d59e63c6cf499aee9f4fc4f29c (patch) | |
tree | df7eae05071c030c84ed633e282f6c54fac7aae1 /src/shared/path-util.c | |
parent | f3965062948a086256b7ff6e317954b789fa13c3 (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.c | 3 |
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; |