mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
remove double free (David Swasey)
This commit is contained in:
parent
6d4dda86ee
commit
ff3dce55bf
1 changed files with 1 additions and 3 deletions
|
@ -664,10 +664,8 @@ readconfigfile(Config *cp)
|
|||
}
|
||||
c.mtime = dir->mtime;
|
||||
free(dir);
|
||||
if((b = Bopen(name, OREAD)) == nil){
|
||||
free(dir);
|
||||
if((b = Bopen(name, OREAD)) == nil)
|
||||
return -1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Reuse old tree, garbage collecting entries that
|
||||
|
|
Loading…
Reference in a new issue