fix minor memory leaks

This commit is contained in:
Connor Olding 2017-03-31 02:07:21 +00:00
parent 926bd2dae8
commit 5d9ccb42f8

View file

@ -185,6 +185,9 @@ static void state_free(Resynth_state *s) {
sb_freeset(s->corpus_points);
sb_freeset(s->sorted_offsets);
MEMORY(s->diff_table, 0);
MEMORY(s->neighbors, 0);
MEMORY(s->neighbor_values, 0);
MEMORY(s->neighbor_statuses, 0);
MEMORY(s->data_array, 0);
MEMORY(s->corpus_array, 0);
MEMORY(s->status_array, 0);