summaryrefslogtreecommitdiff
path: root/minilogd.c
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2009-03-09 14:47:35 -0700
committerAaron Griffin <aaronmgriffin@gmail.com>2009-03-09 14:47:35 -0700
commitcbb9215591b618f09adc70889f32864a6f566f47 (patch)
tree1cd1fa7dc9e97d17ba89d99e8ef410a76e059207 /minilogd.c
parentc206cfd1de94e2e79c1d9d42dc8f44f140d4c3f8 (diff)
minilogd: ensure we free() the buffer
This isn't strictly needed, as memory is cleaned up on exit anyway, but let's shoot for good form :) Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'minilogd.c')
-rw-r--r--minilogd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/minilogd.c b/minilogd.c
index 32ca53e..d14c9a3 100644
--- a/minilogd.c
+++ b/minilogd.c
@@ -58,6 +58,7 @@ void freeBuffer() {
free(buffer[x]);
x++;
}
+ free(buffer);
}
void cleanup(int exitcode) {