It looks like there's a potential memory leak in
window_copy_copy_selection.  This function calls
window_copy_copy_buffer, which calls paste_replace.  If paste_replace
succeeds, it stores the data that was passed to it.

But if paste_replace fails, such as when an invalid buffer index is
specified, it doesn't store the data, and nothing frees the memory
that was allocated.

window_copy_copy_pipe has the same problem.

I've attached a patch which should fix this.

Attachment: tmux-ml.patch
Description: Binary data

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to