aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/build.c b/build.c
index 085722d..912dc97 100644
--- a/build.c
+++ b/build.c
@@ -152,12 +152,13 @@ main(int argc, char *argv[])
"exist\n", argv[0], d);
continue;
}
- free(d);
if (sb.st_mtime > ssb.st_mtime) {
d("%s: %s is modified, building\n",
argv[i], d);
+ free(d);
goto build;
}
+ free(d);
}
uptodate: