=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-capture-pane.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/tmux/cmd-capture-pane.c 2009/12/03 22:50:10 1.2 --- src/usr.bin/tmux/cmd-capture-pane.c 2010/01/20 18:30:20 1.3 *************** *** 1,4 **** ! /* $OpenBSD: cmd-capture-pane.c,v 1.2 2009/12/03 22:50:10 nicm Exp $ */ /* * Copyright (c) 2009 Jonathan Alvarado --- 1,4 ---- ! /* $OpenBSD: cmd-capture-pane.c,v 1.3 2010/01/20 18:30:20 nicm Exp $ */ /* * Copyright (c) 2009 Jonathan Alvarado *************** *** 65,70 **** --- 65,72 ---- memcpy(buf + len, line, linelen); len += linelen; buf[len++] = '\n'; + + xfree(line); } limit = options_get_number(&sess->options, "buffer-limit");