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 a new issue