Commit:630acc0e941f3463a99a4ced0f1611023a69c235 (browse)
Parent:f7cd83ffe6a65578a9f1c89646facbcbfd7179a1
Author:qwx <qwx@sciops.net>
Date:Wed Jan 22 16:08:48 CET 2020
Message:
parse: use setrealloctag(2) for erealloc (thanks rodri)

exec.c => exec.c
@@ -48,7 +48,6 @@
 		r = -1;
 	}
 	free(w);
-	/* FIXME: clean up temp files */
 	return r;
 }
 

parse.c => parse.c
@@ -36,7 +36,7 @@
 {
 	if((p = realloc(p, n)) == nil)
 		sysfatal("realloc: %r");
-	setmalloctag(p, getcallerpc(&p));
+	setrealloctag(p, getcallerpc(&p));
 	return p;
 }