chiark / gitweb /
shared: path-util - memory leak
[elogind.git] / src / shared / path-util.c
index dcc8321f505ee685727ae8b3a7f3565eb6795b2d..3256deeec1e3535f25da63c48ba3a978fb49674d 100644 (file)
@@ -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;
                         }