| 1 | /* |
1 | /* |
| 2 | rewrite.c - Part of psiconv, a PSION 5 file formats converter |
2 | rewrite.c - Part of psiconv, a PSION 5 file formats converter |
| 3 | Copyright (c) 1999 Frodo Looijaard <frodol@dds.nl> |
3 | Copyright (c) 1999-2004 Frodo Looijaard <frodol@dds.nl> |
| 4 | |
4 | |
| 5 | This program is free software; you can redistribute it and/or modify |
5 | This program is free software; you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by |
6 | it under the terms of the GNU General Public License as published by |
| 7 | the Free Software Foundation; either version 2 of the License, or |
7 | the Free Software Foundation; either version 2 of the License, or |
| 8 | (at your option) any later version. |
8 | (at your option) any later version. |
| … | |
… | |
| 75 | perror("Can't fwrite file"); |
75 | perror("Can't fwrite file"); |
| 76 | exit(1); |
76 | exit(1); |
| 77 | } |
77 | } |
| 78 | fclose(fp); |
78 | fclose(fp); |
| 79 | psiconv_buffer_free(buf); |
79 | psiconv_buffer_free(buf); |
|
|
80 | psiconv_config_free(config); |
| 80 | exit(0); |
81 | exit(0); |
| 81 | } |
82 | } |