[core] Fix memleak in filter_buffer_on_disk/bod_open() and free srv->optionptrs on exit
parent
b144242a07
commit
c0e7ef3654
|
@ -32,6 +32,8 @@ static gboolean bod_open(liVRequest *vr, bod_state *state) {
|
|||
state->tempfile = li_chunkfile_new(tmpfilename, fd, TRUE);
|
||||
state->write_pos = 0;
|
||||
state->flush_pos = 0;
|
||||
|
||||
g_string_free(tmpfilename, TRUE);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
|
|
@ -106,6 +106,7 @@ void li_server_plugins_free(liServer *srv) {
|
|||
}
|
||||
g_hash_table_destroy(srv->plugins);
|
||||
g_hash_table_destroy(srv->options);
|
||||
g_hash_table_destroy(srv->optionptrs);
|
||||
g_hash_table_destroy(srv->actions);
|
||||
g_hash_table_destroy(srv->setups);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue