chase-symlinks: Fix memory leak

This commit is contained in:
Daan De Meyer
2023-03-14 09:56:59 +01:00
parent 7486f9c342
commit 0a9b887878
+3 -1
View File
@@ -522,7 +522,9 @@ int chase_symlinks(
return r;
if (ret_path) {
char *q = path_join(empty_to_root(root), p);
_cleanup_free_ char *q = NULL;
q = path_join(empty_to_root(root), p);
if (!q)
return -ENOMEM;