From 8170dcd3695d60b456e28125f53874ef686128ca Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Tue, 16 Dec 2014 22:24:54 +0100 Subject: shared: path-util - memory leak Signed-off-by: Anthony G. Basile --- src/shared/path-util.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/shared') diff --git a/src/shared/path-util.c b/src/shared/path-util.c index 5dfa8266ec..4367fa7088 100644 --- a/src/shared/path-util.c +++ b/src/shared/path-util.c @@ -183,6 +183,7 @@ char **path_strv_resolve(char **l, const char *prefix) { } else { /* canonicalized path goes outside of * prefix, keep the original path instead */ + free(u); u = orig; orig = NULL; } -- cgit v1.2.3-54-g00ecf