shithub: riscv

Download patch

ref: 3f9867c4ce56e7bd60d5518ee85e93cebfb63c0c
parent: 221129dc3006f398b2c0c34f4f42cf9a17ec89cb
author: cinap_lenrek <[email protected]>
date: Wed Dec 25 09:55:16 EST 2013

devdraw: fix drawdelname() string memory leak

--- a/sys/src/9/port/devdraw.c
+++ b/sys/src/9/port/devdraw.c
@@ -607,6 +607,7 @@
 {
 	int i;
 
+	free(name->name);
 	i = name-sdraw.name;
 	memmove(name, name+1, (sdraw.nname-(i+1))*sizeof(DName));
 	sdraw.nname--;