summaryrefslogtreecommitdiffstats
path: root/src/core/path.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/path.c')
-rw-r--r--src/core/path.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/path.c b/src/core/path.c
index b06b97d712..d5651cd9d8 100644
--- a/src/core/path.c
+++ b/src/core/path.c
@@ -288,9 +288,8 @@ void path_free_specs(Path *p) {
assert(p);
- while ((s = p->specs)) {
+ while ((s = LIST_POP(spec, p->specs))) {
path_spec_unwatch(s);
- LIST_REMOVE(spec, p->specs, s);
path_spec_done(s);
free(s);
}