simon-git: puzzles (main): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Sat Jul 29 22:13:49 BST 2023
TL;DR:
3e7a6ad midend_get_prefs: Don't free memory that we just copied elsewhere.
Repository: https://git.tartarus.org/simon/puzzles.git
On the web: https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer: Simon Tatham <anakin at pobox.com>
Date: 2023-07-29 22:13:49
commit 3e7a6adce5887db04d26438da64fdc4de308f4da
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=3e7a6adce5887db04d26438da64fdc4de308f4da;hp=9e4e15fda22e0ed8e5c6ea671f17bd76ead0d317
Author: Asher Gordon <AsDaGo at posteo.net>
Date: Sat Jul 29 15:27:46 2023 -0400
midend_get_prefs: Don't free memory that we just copied elsewhere.
We were using free_cfg(be_prefs) after we copied be_prefs to
all_prefs, but we actually want to use sfree(be_prefs) since we don't
want to free each element that has been copied. None of the games so
far use string preferences, which is why they haven't been affected by
this bug.
midend.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
More information about the tartarus-commits
mailing list