diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-01-25 18:51:28 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-01-25 18:51:28 +0000 |
commit | d60ad6f483ddbe8ee2458aaef37b6f38140d63f5 (patch) | |
tree | 560d15228106845d2132b293318b05f07192377b /window-copy.c | |
parent | 32903241a23b2e1f97e19f33086c0f77fd9aaa90 (diff) | |
download | rtmux-d60ad6f483ddbe8ee2458aaef37b6f38140d63f5.tar.gz rtmux-d60ad6f483ddbe8ee2458aaef37b6f38140d63f5.tar.bz2 rtmux-d60ad6f483ddbe8ee2458aaef37b6f38140d63f5.zip |
Make the caller responsible for allocating memory for the paste buffer data
(needed by the load-buffer command when dealing with big files since it'll
prevent tmux from dying due to memory exhaustion). From nicm.
Diffstat (limited to 'window-copy.c')
-rw-r--r-- | window-copy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/window-copy.c b/window-copy.c index 93733b61..186392e8 100644 --- a/window-copy.c +++ b/window-copy.c @@ -1,4 +1,4 @@ -/* $Id: window-copy.c,v 1.44 2009-01-23 20:50:58 nicm Exp $ */ +/* $Id: window-copy.c,v 1.45 2009-01-25 18:51:28 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -419,7 +419,6 @@ window_copy_copy_selection(struct window_pane *wp, struct client *c) /* Add the buffer to the stack. */ limit = options_get_number(&c->session->options, "buffer-limit"); paste_add(&c->session->buffers, buf, limit); - xfree(buf); } void |