Merge branch 'leak-fix' into feat/c-wrapper
This commit is contained in:
commit
1a59da6c32
|
@ -64,7 +64,9 @@ size_t negentropy_initiate(void* negentropy, buffer* out){
|
|||
return 0;
|
||||
}
|
||||
memcpy( out->data, output->c_str() ,output->size());
|
||||
return output->size();
|
||||
size_t outlen = output->size();
|
||||
delete output;
|
||||
return outlen;
|
||||
}
|
||||
|
||||
void negentropy_setinitiator(void* negentropy){
|
||||
|
|
Loading…
Reference in New Issue