From ff3dce55bfbc7da32db11803f2acac7ec30c35c9 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 25 Mar 2007 17:42:25 +0000 Subject: remove double free (David Swasey) --- src/cmd/vbackup/vnfs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/cmd/vbackup/vnfs.c b/src/cmd/vbackup/vnfs.c index 047d3373..2776fd69 100644 --- a/src/cmd/vbackup/vnfs.c +++ b/src/cmd/vbackup/vnfs.c @@ -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 -- cgit v1.2.3