shithub: 9pro

Download patch

ref: f9ddf46b12b9ee88e3b81f35f80e374722ca6f9d
parent: 4a9f03f341b69bcad13c5ea24c855980c5e3c8f0
author: Sigrid Haflínudóttir <[email protected]>
date: Thu Jun 18 10:24:41 EDT 2020

9pex: fix freeing wrong memory

--- a/9pex.c
+++ b/9pex.c
@@ -727,7 +727,7 @@
 
 done:
 	for (i = 0; i < num; i++)
-		free(c9st[i].name);
+		free(c9stp[i]->name);
 	return res;
 }