path-util: plug leak

This commit is contained in:
Tom Gundersen
2015-01-08 17:09:45 +01:00
parent 34a317e1cc
commit a0539d7753
+3
View File
@@ -524,6 +524,9 @@ fallback:
return -errno;
}
free(parent);
parent = NULL;
r = path_get_parent(t, &parent);
if (r < 0)
return r;