btt: fix missing cleanup call
authorAaron Carroll <aaronc@gelato.unsw.edu.au>
Wed, 13 Feb 2008 07:48:14 +0000 (18:48 +1100)
committerAlan D. Brunelle <alan.brunelle@hp.com>
Wed, 13 Feb 2008 16:43:03 +0000 (11:43 -0500)
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>
btt/bt_timeline.c
btt/globals.h

index 981b9099062fa2b4568b107438d818048b95bc42..17a1b23de2cad716d20c513a58676e058856b43d 100644 (file)
@@ -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;
index f6041de5f54d64f4304575688d7e4b30d712d5ae..486a3fc9580801ef1516ed38e583aace3324da74 100644 (file)
@@ -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);