1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

path-util: plug leak

This commit is contained in:
Tom Gundersen 2015-01-06 19:12:38 +01:00
parent 34a317e1cc
commit a0539d7753

View File

@ -524,6 +524,9 @@ fallback:
return -errno;
}
free(parent);
parent = NULL;
r = path_get_parent(t, &parent);
if (r < 0)
return r;