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

personal/stbuehler/wip
Thomas Porzelt 12 years ago
parent b144242a07
commit c0e7ef3654
  1. 2
      src/main/filter_buffer_on_disk.c
  2. 1
      src/main/plugin.c

@ -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…
Cancel
Save