more memory errors (valgrind)
This commit is contained in:
parent
96f54e3fff
commit
40402738da
3 changed files with 3 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ emalloc(long n)
|
|||
if(p==0)
|
||||
panic("Can't malloc %d bytes", n);
|
||||
/* if(err){ pfmt(err, "malloc %d->%p\n", n, p); flush(err); } /**/
|
||||
memset(p, 0, n);
|
||||
return p;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue