git-svn: trunk@851
Trog authored on 2004/09/13 20:02:35... | ... |
@@ -877,15 +877,21 @@ abort: |
877 | 877 |
if (!m_area) { |
878 | 878 |
fclose(stream_in); |
879 | 879 |
} |
880 |
- html_output_flush(file_buff_o1); |
|
881 |
- html_output_flush(file_buff_o2); |
|
882 |
- html_output_flush(file_buff_script); |
|
883 |
- close(file_buff_o1->fd); |
|
884 |
- close(file_buff_o2->fd); |
|
885 |
- close(file_buff_script->fd); |
|
886 |
- free(file_buff_o1); |
|
887 |
- free(file_buff_o2); |
|
888 |
- free(file_buff_script); |
|
880 |
+ if (file_buff_o1) { |
|
881 |
+ html_output_flush(file_buff_o1); |
|
882 |
+ close(file_buff_o1->fd); |
|
883 |
+ free(file_buff_o1); |
|
884 |
+ } |
|
885 |
+ if (file_buff_o2) { |
|
886 |
+ html_output_flush(file_buff_o2); |
|
887 |
+ close(file_buff_o2->fd); |
|
888 |
+ free(file_buff_o2); |
|
889 |
+ } |
|
890 |
+ if (file_buff_script) { |
|
891 |
+ html_output_flush(file_buff_script); |
|
892 |
+ close(file_buff_script->fd); |
|
893 |
+ free(file_buff_script); |
|
894 |
+ } |
|
889 | 895 |
return retval; |
890 | 896 |
} |
891 | 897 |
|