shithub: scc

Download patch

ref: 18853825ec9395caec2bfd42e7fd95f4cd723402
parent: 79671df4e68f1101d88ded9891e1f01be99cb189
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Jan 4 12:20:53 EST 2019

[libmach/coff32] Free all the fields

--- a/src/libmach/coff32.c
+++ b/src/libmach/coff32.c
@@ -247,7 +247,6 @@
 		c = toupper(c);
 
 	return c;
-
 }
 
 int
@@ -282,5 +281,7 @@
 	struct coff32 *coff = obj->data;
 
 	free(coff->scns);
+	free(coff->ents);
+	free(coff->strtbl);
 	free(obj->data);
 }