2
0
Fork 0

[core] Fix memleak in filter_buffer_on_disk/bod_open() and free srv->optionptrs on exit

personal/stbuehler/wip
Thomas Porzelt 2010-05-08 11:55:52 +02:00
parent b144242a07
commit c0e7ef3654
2 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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);
}