git: 9front

Download patch

ref: 07a91e613de9ffe704d213bb25bcc40fdaf01c99
parent: 51e5aec5046d35f7cecce27851d37f96756a4e2d
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Fri Jan 25 09:15:48 EST 2013

libc: set malloctag for runestrdup()

--- a/sys/src/libc/port/runestrdup.c
+++ b/sys/src/libc/port/runestrdup.c
@@ -9,6 +9,6 @@
 	ns = malloc(sizeof(Rune)*(runestrlen(s) + 1));
 	if(ns == 0)
 		return 0;
-
+	setmalloctag(ns, getcallerpc(&s));
 	return runestrcpy(ns, s);
 }
--