mirror of
https://github.com/facebook/zstd.git
synced 2025-07-30 22:23:13 +03:00
fixed memory leaks and almost all undefined behaviour
This commit is contained in:
@ -64,6 +64,8 @@ local int gz_init(gz_statep state) {
|
||||
strm->next_out = state.state->out;
|
||||
state.state->x.next = strm->next_out;
|
||||
}
|
||||
|
||||
free(state.state);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user