shithub: riscv

Download patch

ref: 662ab3b7b262e5da477c5e416de3609d524775c6
parent: a67975c01dae9d67bc6349dab4e7a6e2956cf1da
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Fri May 26 13:57:58 EDT 2023

sdide: fix double free in clear() (devsd frees sdev already)

--- a/sys/src/9/pc/sdide.c
+++ b/sys/src/9/pc/sdide.c
@@ -789,7 +789,6 @@
 	if (sdev->unit)
 		free(sdev->unit);
 	free(ctlr);
-	free(sdev);
 }
 
 static char *