From 769599c463ec62545c5c382b2d6e0e18b7b2ef98 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Fri, 21 Jul 2023 08:04:10 +0300 Subject: [PATCH] Fix closing same file twice Closes #318 --- src/loadsave.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loadsave.cc b/src/loadsave.cc index 645dcab..90f09c3 100644 --- a/src/loadsave.cc +++ b/src/loadsave.cc @@ -2733,7 +2733,7 @@ out: } if (stream2 != NULL) { - fileClose(stream1); + fileClose(stream2); } if (buf != NULL) {