From 6fc7da3c529ca7c610e8172f5b02980c75597dd5 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 19 Oct 2006 21:58:59 +0000 Subject: Fix a handful of small one-time memory leaks in vbackup, and one per-package memory leak (in writethread). --- src/libdiskfs/cache.c | 2 +- src/libdiskfs/ffs.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libdiskfs') diff --git a/src/libdiskfs/cache.c b/src/libdiskfs/cache.c index f1af6f1b..7b06fa4f 100644 --- a/src/libdiskfs/cache.c +++ b/src/libdiskfs/cache.c @@ -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; diff --git a/src/libdiskfs/ffs.c b/src/libdiskfs/ffs.c index 7864c719..9607cfbe 100644 --- a/src/libdiskfs/ffs.c +++ b/src/libdiskfs/ffs.c @@ -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) -- cgit v1.2.3