--- psiconv/trunk/program/extra/rewrite.c 2000/12/27 02:12:23 80 +++ psiconv/trunk/program/extra/rewrite.c 2003/11/23 18:48:55 165 @@ -32,6 +32,7 @@ if (argc < 3) { fprintf(stderr,"Not enough arguments\n"); + fprintf(stderr,"Syntax: INFILE OUTFILE\n"); exit(1); } if (!(fp = fopen(argv[1],"r"))) { @@ -58,6 +59,7 @@ fprintf(stderr,"Generate error\n"); exit(1); } + psiconv_free_file(psionfile); if (!(fp = fopen(argv[2],"w"))) { perror("Can't open file"); exit(1); @@ -66,5 +68,7 @@ perror("Can't fwrite file"); exit(1); } + fclose(fp); + psiconv_buffer_free(buf); exit(0); }