libc: set malloctag for runestrdup()
This commit is contained in:
parent
ea81146c15
commit
13dbaaaf70
|
@ -9,6 +9,6 @@ runestrdup(Rune *s)
|
||||||
ns = malloc(sizeof(Rune)*(runestrlen(s) + 1));
|
ns = malloc(sizeof(Rune)*(runestrlen(s) + 1));
|
||||||
if(ns == 0)
|
if(ns == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
setmalloctag(ns, getcallerpc(&s));
|
||||||
return runestrcpy(ns, s);
|
return runestrcpy(ns, s);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue