summaryrefslogtreecommitdiff
path: root/btt/devmap.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2011-12-16 13:17:52 -0600
committerJens Axboe <jaxboe@fusionio.com>2012-02-01 13:14:29 +0100
commit6da330452fbaa1de7ebba6cddcdfdb343fda94ee (patch)
tree45d5f1f1f0392bc8c3445f9e7af45b74a851470d /btt/devmap.c
parent84b321fac4e417b1a1d91df1c5844a3c13ef53e5 (diff)
downloadblktrace-6da330452fbaa1de7ebba6cddcdfdb343fda94ee.tar.gz
blktrace-6da330452fbaa1de7ebba6cddcdfdb343fda94ee.tar.bz2
btt: close devmap file after processing
Close the file used for btt's -M argument after processing. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'btt/devmap.c')
-rw-r--r--btt/devmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/btt/devmap.c b/btt/devmap.c
index 9c0348b..0553a9e 100644
--- a/btt/devmap.c
+++ b/btt/devmap.c
@@ -76,6 +76,7 @@ int dev_map_read(char *fname)
break;
}
+ fclose(fp);
return 0;
}