Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac #15819: GAP interface memory leak
Browse files Browse the repository at this point in the history
All commands in the GAP command line interface end up in the
undocumented GAP variable `CommandLineHistory`. This patch limits it to
avoid a memory leak. See https://groups.google.com/d/msg/sage-
support/evFx3oE02zU/yY24JNbHfPQJ

URL: http://trac.sagemath.org/15819
Reported by: vbraun
Ticket author(s): Volker Braun
Reviewer(s): David Roe
  • Loading branch information
Release Manager authored and vbraun committed Feb 14, 2014
2 parents 37022eb + 3adeef4 commit 8f603de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sage/interfaces/gap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1508,6 +1508,7 @@ def gap_reset_workspace(max_workspace_size=None, verbose=False):

# Create new workspace with filename WORKSPACE
g = Gap(use_workspace_cache=False, max_workspace_size=None)
g.eval('SetUserPreference("HistoryMaxLines", 30)')
for pkg in ['GAPDoc', 'ctbllib', 'sonata', 'guava', 'factint', \
'gapdoc', 'grape', 'design', \
'toric', 'laguna', 'braid']:
Expand Down

0 comments on commit 8f603de

Please sign in to comment.