aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vbackup
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2007-03-25 17:42:25 +0000
committerrsc <devnull@localhost>2007-03-25 17:42:25 +0000
commitff3dce55bfbc7da32db11803f2acac7ec30c35c9 (patch)
treef837656431aa67a98d9475775fffd8790f161a2b /src/cmd/vbackup
parent6d4dda86ee7d0c34b99bc2056f26910b7b4bf9c3 (diff)
downloadplan9port-ff3dce55bfbc7da32db11803f2acac7ec30c35c9.tar.gz
plan9port-ff3dce55bfbc7da32db11803f2acac7ec30c35c9.tar.bz2
plan9port-ff3dce55bfbc7da32db11803f2acac7ec30c35c9.zip
remove double free (David Swasey)
Diffstat (limited to 'src/cmd/vbackup')
-rw-r--r--src/cmd/vbackup/vnfs.c4
1 files changed, 1 insertions, 3 deletions
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