path-util: plug leak

(cherry picked from commit a0539d7753)
This commit is contained in:
Tom Gundersen
2015-01-15 23:50:49 -05:00
committed by Zbigniew Jędrzejewski-Szmek
parent ff8045f252
commit d3ebb19e84
+3
View File
@@ -515,6 +515,9 @@ fallback:
return -errno;
}
free(parent);
parent = NULL;
r = path_get_parent(t, &parent);
if (r < 0)
return r;