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) {