Commit 0c324305 authored by Russ Cox's avatar Russ Cox

free(nil)

R=iant
DELTA=3  (3 added, 0 deleted, 0 changed)
OCL=22467
CL=22471
parent a3ed4e71
......@@ -68,6 +68,9 @@ free(void *v)
MSpan *s;
MCache *c;
if(v == nil)
return;
// Find size class for v.
page = (uintptr)v >> PageShift;
sizeclass = MHeapMapCache_GET(&mheap.mapcache, page, tmp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment