1
0
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:
Tom Gundersen 2014-12-16 22:24:54 +01:00
parent c487c9cec0
commit 3542eac7f9

View 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;
}