remove double free (David Swasey)

This commit is contained in:
rsc 2007-03-25 17:42:25 +00:00
parent 6d4dda86ee
commit ff3dce55bf

View file

@ -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