shithub: clone

Download patch

ref: 99afac729632775756aae7679b4e91fb6c7f6fde
parent: a79f839320ed7845764f1abff3e54b6355eb4640
author: kvik <kvik@a-b.xyz>
date: Wed Nov 7 18:13:15 EST 2018

fix leaked fd in mkdir

--- a/clone.c
+++ b/clone.c
@@ -189,6 +189,7 @@
 			return -1;
 		}
 	}
+	close(fd);
 	return 1;
 }