summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-01-25 14:15:48 +0100
committercinap_lenrek <cinap_lenrek@gmx.de>2013-01-25 14:15:48 +0100
commit13dbaaaf707804db47c9bf29ed93953405672984 (patch)
tree2d446e102039e4e8863081b38b2840f7c6830efd
parentea81146c1515a35481103388a0e1e37aecab4933 (diff)
libc: set malloctag for runestrdup()
-rw-r--r--sys/src/libc/port/runestrdup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libc/port/runestrdup.c b/sys/src/libc/port/runestrdup.c
index f66b430b6..c25420654 100644
--- a/sys/src/libc/port/runestrdup.c
+++ b/sys/src/libc/port/runestrdup.c
@@ -9,6 +9,6 @@ runestrdup(Rune *s)
ns = malloc(sizeof(Rune)*(runestrlen(s) + 1));
if(ns == 0)
return 0;
-
+ setmalloctag(ns, getcallerpc(&s));
return runestrcpy(ns, s);
}