mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Merge branch 'obsd-master'
This commit is contained in:
4
paste.c
4
paste.c
@ -162,8 +162,10 @@ paste_add(char *data, size_t size)
|
||||
struct paste_buffer *pb, *pb1;
|
||||
u_int limit;
|
||||
|
||||
if (size == 0)
|
||||
if (size == 0) {
|
||||
free(data);
|
||||
return;
|
||||
}
|
||||
|
||||
limit = options_get_number(global_options, "buffer-limit");
|
||||
RB_FOREACH_REVERSE_SAFE(pb, paste_time_tree, &paste_by_time, pb1) {
|
||||
|
Reference in New Issue
Block a user