make iob_reset actually free the buffers
parent
543987da58
commit
0ba7b25005
@ -1,5 +1,5 @@
|
||||
#include "iob_internal.h"
|
||||
|
||||
int iob_addbuf(io_batch* b,const void* buf,uint64 n) {
|
||||
int iob_addbuf_free(io_batch* b,const void* buf,uint64 n) {
|
||||
return iob_addbuf_internal(b,buf,n,1);
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "str.h"
|
||||
#include "iob.h"
|
||||
|
||||
int iob_adds(io_batch* b,const char* s) {
|
||||
int iob_adds_free(io_batch* b,const char* s) {
|
||||
return iob_addbuf_free(b,s,str_len(s));
|
||||
}
|
||||
|
Loading…
Reference in New Issue