Skip to content

Commit

Permalink
Merge pull request #33 from kiryph/fix-errno-24-in-CaratQClassCatalog
Browse files Browse the repository at this point in the history
Add missing CloseStream in CaratQClassCatalog
  • Loading branch information
gaehler authored Dec 18, 2023
2 parents 66f3d36 + b92b8ea commit 6f6dac5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gap/methods.gi
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,9 @@ InstallGlobalFunction( CaratQClassCatalog, function( grp , mode )
# execute Carat program
CaratCommand( "Q_catalog", args, resfile );

# remove temporary file
RemoveFile( grpfile );

# parse the result file
res := rec();
input := InputTextFile( resfile );
Expand Down Expand Up @@ -588,6 +591,11 @@ InstallGlobalFunction( CaratQClassCatalog, function( grp , mode )
fi;
fi;

CloseStream( input );

# remove temporary file
RemoveFile( resfile );

return res;

end );
Expand Down

0 comments on commit 6f6dac5

Please sign in to comment.