aboutsummaryrefslogtreecommitdiff
path: root/fuzzpuzz.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2023-08-24 12:40:51 +0100
committerSimon Tatham <anakin@pobox.com>2023-08-24 12:46:38 +0100
commitf279c5eba035d018a8805a65a8a245b8b8d2ea2e (patch)
tree8f67c5a1084e7b82f665898ff2ca768b89c2482b /fuzzpuzz.c
parent56781e60ba88728f56bf0241a22553008d76ef74 (diff)
downloadpuzzles-f279c5eba035d018a8805a65a8a245b8b8d2ea2e.zip
puzzles-f279c5eba035d018a8805a65a8a245b8b8d2ea2e.tar.gz
puzzles-f279c5eba035d018a8805a65a8a245b8b8d2ea2e.tar.bz2
puzzles-f279c5eba035d018a8805a65a8a245b8b8d2ea2e.tar.xz
midend_request_keys: fix memory leak of a game_params.
Thanks to Steffen Bauer for spotting this. The call to midend_get_params(me) was making a duplicate of me->params, and nothing was freeing it. Since the game_params is passed to request_keys as a const pointer, it should be safe to pass me->params itself, so that instead of adding a free, we can remove the unnecessary allocation.
Diffstat (limited to 'fuzzpuzz.c')
0 files changed, 0 insertions, 0 deletions