extra assertion, fix leak in vtread
This commit is contained in:
parent
d3232caf63
commit
c5eb686096
2 changed files with 3 additions and 0 deletions
|
|
@ -190,6 +190,8 @@ vtfilecreate(VtFile *r, int psize, int dsize, int dir)
|
|||
u32int offset;
|
||||
|
||||
assert(ISLOCKED(r));
|
||||
assert(psize <= VtMaxLumpSize);
|
||||
assert(dsize <= VtMaxLumpSize);
|
||||
|
||||
if(!r->dir){
|
||||
werrstr(ENotDir);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue