diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2009-12-14 21:15:56 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2009-12-14 21:15:56 +0000 |
commit | c1d04e5481ab2a45629ba5f2d1cb29e7f6d0fe8a (patch) | |
tree | 08176a66ee32d1fbb10b143f4baf8c84cd030caa /usr.bin/tmux | |
parent | 6e4fc502035d31ccb93a55c098c5af187f7a2458 (diff) |
Fix "cvs [update aborted]: out of memory; can not reallocate 5242880 bytes"
when checking out xenocara from a server running OpenBSD/amd64.
While processing RCS deltas, don't allocate twice as much memory as
needed when copying a line vector to a vector which has less lines.
Also, when switching back from a branch to trunk while searching an
RCS file for a revision, free the trunklines vector immediately after
lines saved in it have been copied back into the currentlines vector.
Somehow, these two changes together make the problem go away.
ok tobias@, "this has been a serious annoyance" sthen@, "sure" deraadt@
Diffstat (limited to 'usr.bin/tmux')
0 files changed, 0 insertions, 0 deletions