begin quoting Stewart Stremler as of Sat, Sep 30, 2006 at 12:17:45AM -0700: [snip] > See http://www.stremler.net/temp/circular_buffer.tar for my > quick-and-dirty C "circular buffer" backed by an array. YMMV, > etc. etc. [snip]
I've found a bug (possible memory leak) in the CircBuf_Create function. I'm missing a free() if the allocation of the structure succeeds, but an allocation of the buffer fails. -- _ |\_ \| -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
