mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
shared: path-util - memory leak
This commit is contained in:
parent
c487c9cec0
commit
3542eac7f9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user