ref: 1a48d76fcc9d45035641b7a861e5659da53ed63d
parent: 5fa193156070873b237e62a7177c2fa55d39508d
author: Ben Harris <bjh21@bjh21.me.uk>
date: Thu Jan 12 09:28:53 EST 2023
Remember to free the game name in fuzzpuzz
--- a/fuzzpuzz.c
+++ b/fuzzpuzz.c
@@ -79,6 +79,7 @@
for (i = 0; i < gamecount; i++)
if (strcmp(gamename, gamelist[i]->name) == 0)
ourgame = gamelist[i];
+ sfree(gamename);
if (ourgame == NULL) {
fprintf(stderr, "Game '%s' not recognised\n", gamename);
ret = 1;