summaryrefslogtreecommitdiffhomepage
path: root/circbuffer.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2012-02-10 18:32:18 +0800
committerMatt Johnston <matt@ucc.asn.au>2012-02-10 18:32:18 +0800
commit5feebd300ecb13b7938541a71d739452a450377a (patch)
tree1f86a52c31f0a66fbf4fcd962502c014add324d4 /circbuffer.c
parent5454c2a7f16e22c4144c5ffc2832d3369e559a0d (diff)
Clear a few buffers when possible
Diffstat (limited to 'circbuffer.c')
-rw-r--r--circbuffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/circbuffer.c b/circbuffer.c
index f19b70a..7953737 100644
--- a/circbuffer.c
+++ b/circbuffer.c
@@ -48,6 +48,7 @@ circbuffer * cbuf_new(unsigned int size) {
void cbuf_free(circbuffer * cbuf) {
+ m_burn(cbuf->data, cbuf->size);
m_free(cbuf->data);
m_free(cbuf);
}