strdup: set malloctag

This commit is contained in:
cinap_lenrek 2011-09-05 18:35:54 +02:00
parent 45f2fd3c01
commit e159e8e54a

View file

@ -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);
}