From 3542eac7f98e74ca106ac6df81b3b3cb158b35be Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Tue, 16 Dec 2014 22:24:54 +0100 Subject: [PATCH] shared: path-util - memory leak --- src/shared/path-util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/path-util.c b/src/shared/path-util.c index dcc8321f5..3256deeec 100644 --- a/src/shared/path-util.c +++ b/src/shared/path-util.c @@ -306,6 +306,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; } -- 2.30.2