diff options
| author | Ben Hutchings <ben@decadent.org.uk> | 2019-08-17 17:33:54 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2022-07-31 08:53:08 +0100 |
| commit | cd338a1a35394a7abfd517569e908b54bf657aaa (patch) | |
| tree | f61197d6f29f314440d035e7a41085bccc87934c /html/pattern.html | |
| parent | 0dc46506ca85eb49299fc62a4362c8a4a655e320 (diff) | |
| download | puzzles-cd338a1a35394a7abfd517569e908b54bf657aaa.zip puzzles-cd338a1a35394a7abfd517569e908b54bf657aaa.tar.gz puzzles-cd338a1a35394a7abfd517569e908b54bf657aaa.tar.bz2 puzzles-cd338a1a35394a7abfd517569e908b54bf657aaa.tar.xz | |
Unruly: Fix memory leak in dup_game()
The common structure is ref-counted and dup_game() bumps the reference
count rather than copying it. However, blank_state() always allocates
a new instance. Add a parameter to control whether blank_state()
allocates it.
Fixes: 47cec547e59a ("Unruly, Group: reference-count the 'immutable' array.")
Diffstat (limited to 'html/pattern.html')
0 files changed, 0 insertions, 0 deletions