aboutsummaryrefslogtreecommitdiff
path: root/fractal-gen.c
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-02-23 23:41:13 +1300
committerDavid Phillips <david@sighup.nz>2017-02-23 23:41:13 +1300
commita9bf354fc6c53ce39c1af51902e15e86d42369bc (patch)
tree6489e7d7a640e45f344ebbb98fc13bddd9dee3bb /fractal-gen.c
parent5b1c35bd427a12ea39443142bf4540242a022963 (diff)
downloadfractal-gen-opencl-a9bf354fc6c53ce39c1af51902e15e86d42369bc.tar.xz
Add missing free()s
Diffstat (limited to 'fractal-gen.c')
-rw-r--r--fractal-gen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fractal-gen.c b/fractal-gen.c
index 4740e45..8efa947 100644
--- a/fractal-gen.c
+++ b/fractal-gen.c
@@ -59,6 +59,8 @@ int run(const char *preferred_platform, unsigned int size, unsigned long iterati
printf("P5\n%d\n%d\n255\n",size,size);
fwrite(buffer, size*size, 1, stdout);
+
+ free(buffer);
}
void die_help()