CLOSE FILE HANDLE: Fix bugs and add test.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 7 Mar 2023 20:37:39 +0000 (12:37 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 7 Mar 2023 20:42:09 +0000 (12:42 -0800)
commit425d4ab4b75ab81c9dcb586781a808b5b84989fc
tree781d09d898f9a938062a28dabfff731b49d1bcc2
parent44865eced89408cf217088517ee407c0ddd7d517
CLOSE FILE HANDLE: Fix bugs and add test.

In addition to the particular bug that was reported, there was a memory
leak.  This commit fixes both.

Reported by knassen@chartermi.net.
src/data/file-handle-def.c
src/language/commands/file-handle.c
tests/language/commands/file-handle.at