libc: set malloctag for runesmprint()
This commit is contained in:
parent
1eb2c757e7
commit
81618e61df
2 changed files with 4 additions and 1 deletions
|
@ -10,5 +10,7 @@ runesmprint(char *fmt, ...)
|
|||
va_start(args, fmt);
|
||||
p = runevsmprint(fmt, args);
|
||||
va_end(args);
|
||||
if(p != nil)
|
||||
setmalloctag(p, getcallerpc(&fmt));
|
||||
return p;
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@ smprint(char *fmt, ...)
|
|||
va_start(args, fmt);
|
||||
p = vsmprint(fmt, args);
|
||||
va_end(args);
|
||||
setmalloctag(p, getcallerpc(&fmt));
|
||||
if(p != nil)
|
||||
setmalloctag(p, getcallerpc(&fmt));
|
||||
return p;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue