summaryrefslogtreecommitdiffstats
path: root/dimension/main.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-09-26 00:46:34 -0400
committerTavian Barnes <tavianator@gmail.com>2010-09-26 00:46:34 -0400
commit725bd4f0b4cc067fc2770f7f8ffd9c815c745239 (patch)
tree2bf8c049473d27057ce8cbac2a08eb2be05443b6 /dimension/main.c
parent46bf25a9bed9eec6aaa8c4cad8144c7df629da30 (diff)
downloaddimension-725bd4f0b4cc067fc2770f7f8ffd9c815c745239.tar.xz
Add dmnsn_free() to match dmnsn_malloc().
Diffstat (limited to 'dimension/main.c')
-rw-r--r--dimension/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dimension/main.c b/dimension/main.c
index 951f126..bb44df5 100644
--- a/dimension/main.c
+++ b/dimension/main.c
@@ -275,7 +275,7 @@ main(int argc, char **argv)
strcpy(output, base);
ext = output + len;
}
- free(input_copy);
+ dmnsn_free(input_copy);
strcpy(ext, ".png");
free_output = true;
}
@@ -283,7 +283,7 @@ main(int argc, char **argv)
/* Open the output file */
FILE *output_file = fopen(output, "wb");
if (free_output)
- free(output);
+ dmnsn_free(output);
if (!output_file) {
fprintf(stderr, "Couldn't open output file!");
return EXIT_FAILURE;