From a0539d7753d6a3ede87bf5e57d7c40d5bc1dc230 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Tue, 6 Jan 2015 19:12:38 +0100 Subject: path-util: plug leak --- src/shared/path-util.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3-54-g00ecf