comparison circbuffer.c @ 648:4222a1039b06

Clear a few buffers when possible
author Matt Johnston <matt@ucc.asn.au>
date Fri, 10 Feb 2012 18:32:18 +0800
parents a98a2138364a
children abd99ecd7ec2
comparison
equal deleted inserted replaced
634:a98e2ced7bfa 648:4222a1039b06
46 return cbuf; 46 return cbuf;
47 } 47 }
48 48
49 void cbuf_free(circbuffer * cbuf) { 49 void cbuf_free(circbuffer * cbuf) {
50 50
51 m_burn(cbuf->data, cbuf->size);
51 m_free(cbuf->data); 52 m_free(cbuf->data);
52 m_free(cbuf); 53 m_free(cbuf);
53 } 54 }
54 55
55 unsigned int cbuf_getused(circbuffer * cbuf) { 56 unsigned int cbuf_getused(circbuffer * cbuf) {