shithub: gefs

Download patch

ref: f37db7220322719d490b6031719a5a18f26daeec
parent: fa84b85cc90cf1fc811828cd36f1f57242373237
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Nov 30 21:34:34 EST 2023

emalloc: set caller pc

--- a/main.c
+++ b/main.c
@@ -85,6 +85,7 @@
 
 	if((p = mallocz(sz, zero)) == nil)
 		error(Enomem);
+	setmalloctag(p, getcallerpc(&sz));
 	return p;
 }