summaryrefslogtreecommitdiff
path: root/btt
diff options
context:
space:
mode:
authorAaron Carroll <aaronc@gelato.unsw.edu.au>2008-02-13 18:48:14 +1100
committerAlan D. Brunelle <alan.brunelle@hp.com>2008-02-13 11:43:03 -0500
commitc8aea612abc714072e346366cb0e5cf9da8a2f5f (patch)
tree841b5eec2e9dc9c1577946fac98198dc86943f67 /btt
parent3e95108c8e2c1e804f54d1512f83eb6eff90cc13 (diff)
downloadblktrace-c8aea612abc714072e346366cb0e5cf9da8a2f5f.tar.gz
blktrace-c8aea612abc714072e346366cb0e5cf9da8a2f5f.tar.bz2
btt: fix missing cleanup call
clean_args() exists but is never called, thus any files opened in args remain open while the buffers backing those files are closed. Signed-off-by: Aaron Carroll <aaronc@gelato.unsw.edu.au>
Diffstat (limited to 'btt')
-rw-r--r--btt/bt_timeline.c1
-rw-r--r--btt/globals.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/btt/bt_timeline.c b/btt/bt_timeline.c
index 981b909..17a1b23 100644
--- a/btt/bt_timeline.c
+++ b/btt/bt_timeline.c
@@ -92,6 +92,7 @@ int main(int argc, char *argv[])
free(input_name);
if (output_name) free(output_name);
+ clean_args();
clean_bufs();
return 0;
diff --git a/btt/globals.h b/btt/globals.h
index f6041de..486a3fc 100644
--- a/btt/globals.h
+++ b/btt/globals.h
@@ -228,6 +228,7 @@ extern struct list_head cios;
/* args.c */
void handle_args(int argc, char *argv[]);
+void clean_args();
/* devmap.c */
int dev_map_read(char *fname);