faces: fix callerpc for realloctag in erealloc (thanks qrstuv)
This commit is contained in:
parent
8556b8dae1
commit
171aafcc22
|
@ -26,7 +26,7 @@ erealloc(void *v, ulong sz)
|
|||
fprint(2, "out of memory allocating %ld\n", sz);
|
||||
exits("mem");
|
||||
}
|
||||
setrealloctag(v, getcallerpc(&sz));
|
||||
setrealloctag(v, getcallerpc(&v));
|
||||
return v;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue