ref: 7333d27b0c9d85d7fec41c2ca60dbea740767451
parent: 4227ac1fd5dc25c247e7526526079b85e1890766
author: Simon Tatham <anakin@pobox.com>
date: Tue Jun 6 14:50:38 EDT 2023
Fix a few minor memory leaks. Thanks to Jeremy Stephens for reporting them.
--- a/midend.c
+++ b/midend.c
@@ -309,6 +309,7 @@
sfree(me->privdesc);
sfree(me->seedstr);
sfree(me->aux_info);
+ sfree(me->be_prefs.buf);
me->ourgame->free_params(me->params);
midend_free_preset_menu(me, me->preset_menu);
if (me->ui)
@@ -3011,6 +3012,8 @@
write(wctx, "\n", 1);
}
+
+ free_cfg(cfg);
}
struct buffer {
--- a/solo.c
+++ b/solo.c
@@ -2642,6 +2642,7 @@
sfree(usage->row);
sfree(usage->col);
sfree(usage->blk);
+ sfree(usage->diag);
if (usage->kblocks) {
free_block_structure(usage->kblocks);
free_block_structure(usage->extra_cages);
@@ -2973,6 +2974,7 @@
sfree(usage->blk);
sfree(usage->col);
sfree(usage->row);
+ sfree(usage->diag);
sfree(usage);
return ret;