strdup: set malloctag
This commit is contained in:
parent
45f2fd3c01
commit
e159e8e54a
1 changed files with 1 additions and 1 deletions
|
@ -9,6 +9,6 @@ strdup(char *s)
|
|||
ns = malloc(strlen(s) + 1);
|
||||
if(ns == 0)
|
||||
return 0;
|
||||
|
||||
setmalloctag(ns, getcallerpc(&s));
|
||||
return strcpy(ns, s);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue