diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-03 15:20:30 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-03 15:22:03 -0800 |
commit | 3ead99b0883c49d465a90a6746409003d7224190 (patch) | |
tree | fad0ab467226584b975328b305fded21b980239e /builtin.cpp | |
parent | 8c0803e3c5d9cb874f5dd69ee2727eb4be99bfac (diff) |
Put fish on a diet. Tracked down the biggest memory hogs and fixed them. Total allocations down by a factor of 3 or so, live allocations a few KB.
Diffstat (limited to 'builtin.cpp')
-rw-r--r-- | builtin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin.cpp b/builtin.cpp index 74b4ca1f..9fed9c3e 100644 --- a/builtin.cpp +++ b/builtin.cpp @@ -3255,7 +3255,7 @@ static int builtin_end( parser_t &parser, wchar_t **argv ) parser.get_job_pos()-parser.current_block->tok_pos ); d->definition = def; - function_add( d, parser ); + function_add( *d, parser ); free( def ); } else |