Index: trunk/src/sch-rnd/font_rnd.c =================================================================== --- trunk/src/sch-rnd/font_rnd.c (revision 10274) +++ trunk/src/sch-rnd/font_rnd.c (revision 10275) @@ -183,6 +183,7 @@ if (rnd_font_load(hidlib, f, best->key, 0) != 0) { /* failed to load the font, remove from hash, try another */ + free(f); htsp_popentry(&rf_map, best->key); if (sch_rnd_font_score_debug) fprintf(stderr, " FAILED\n"); @@ -555,8 +556,10 @@ htsp_entry_t *e; for(e = htsp_first(&rf_map); e != NULL; e = htsp_next(&rf_map, e)) { rnd_font_t *f = e->value; - if (f != &loadme) + if (f != &loadme) { rnd_font_free(f); + free(f); + } } htsp_uninit(&rf_map); free(embf);