Fix a handful of small one-time memory leaks in vbackup,

and one per-package memory leak (in writethread).
This commit is contained in:
rsc 2006-10-19 21:58:59 +00:00
parent 067d852abe
commit 6fc7da3c52
17 changed files with 94 additions and 13 deletions

View file

@ -5,7 +5,7 @@
/*
* Disk cache. Caches by offset, so higher levels have
* to deal with alignment issues (if we get asked for the
* blocks at offsets 0 and 1, we'll do two reads.
* blocks at offsets 0 and 1, we'll do two reads).
*/
typedef struct DiskCache DiskCache;

View file

@ -46,6 +46,7 @@ fsysopenffs(Disk *disk)
fsys->_readfile = ffsreadfile;
fsys->_readlink = ffsreadlink;
fsys->_readdir = ffsreaddir;
fsys->_close = ffsclose;
fsys->fileblock = ffsxfileblock;
if(ffssync(fsys) < 0)