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;
|
c.mtime = dir->mtime;
|
||||||
free(dir);
|
free(dir);
|
||||||
if((b = Bopen(name, OREAD)) == nil){
|
if((b = Bopen(name, OREAD)) == nil)
|
||||||
free(dir);
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Reuse old tree, garbage collecting entries that
|
* Reuse old tree, garbage collecting entries that
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue