two more iob fixes

master
leitner 22 years ago
parent c901631a00
commit c574ab3641

@ -1,7 +1,8 @@
#include <stdlib.h> #include <stdlib.h>
#include "byte.h"
#include "iob_internal.h" #include "iob_internal.h"
void iob_reset(io_batch* b) { void iob_reset(io_batch* b) {
array_reset(&b->b); array_reset(&b->b);
free(b); byte_zero(&b,sizeof(*b));
} }

Loading…
Cancel
Save