shithub: mpl

Download patch

ref: 4d66bfdaa80c6b21509f4150d80c3146dfcea609
parent: 80d1babd847f1e946ac37b7e74389049b99cc371
author: Jacob Moody <[email protected]>
date: Thu Dec 5 12:32:32 EST 2019

setmalloctag for emalloc

--- a/util.c
+++ b/util.c
@@ -13,6 +13,7 @@
 	void *v = malloc(size);
 	if(v == nil)
 		quit("Out of memory");
+	setmalloctag(v, getcallerpc(&size));
 	v = memset(v, 0, size);
 	return v;
 }