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