shithub: vim

Download patch

ref: 4421d6d3b59e26be3e191bcb19a203891dcf07d8
parent: 1391a257e3efe1a9c3c431a0ba40533b75928b17
author: phil9 <telephil9@gmail.com>
date: Sun Jul 7 13:45:55 EDT 2024

fix fd leak (thanks shurizzle)

--- a/os_plan9.c
+++ b/os_plan9.c
@@ -1165,9 +1165,6 @@
     int type;
     int fd;
 
-    fd = open("/dev/snarf", O_RDONLY);
-    if (fd < 0)
-	return;
     /* If the '*' register isn't already filled in, fill it in now. */
     cbd->owned = TRUE;
     clip_get_selection(cbd);