aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--msg.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/msg.c b/msg.c
index 46f6414..a16407d 100644
--- a/msg.c
+++ b/msg.c
@@ -238,13 +238,13 @@ handle_file(const char *path)
fprintf(out, "%s%s%s", base_pre, buffer, base_post);
}
+ free(buffer);
+
fclose(in);
fclose(out);
free(inpath);
free(outpath);
-
- free(buffer);
}
int
@@ -317,6 +317,12 @@ main(int argc, char **argv)
free(filepath);
}
+ for (x = (char **) md_resources; *x != NULL; x++) {
+ asprintf(&filepath, "%s.md", *x);
+ handle_file(filepath);
+ free(filepath);
+ }
+
free(base_pre);
free(base_post);