--- psiconv/trunk/program/extra/rewrite.c 2002/01/28 21:04:05 141 +++ psiconv/trunk/program/extra/rewrite.c 2002/01/29 18:38:38 142 @@ -58,6 +58,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 +67,6 @@ perror("Can't fwrite file"); exit(1); } + psiconv_buffer_free(buf); exit(0); }