Browse code

fixed CID 11651

Kevin Lin authored on 2014/03/15 02:16:00
Showing 1 changed files
... ...
@@ -1817,7 +1817,8 @@ abort:
1817 1817
 	}
1818 1818
 	if(file_tmp_o1) {
1819 1819
 		html_output_flush(file_tmp_o1);
1820
-		close(file_tmp_o1->fd);
1820
+		if(file_buff_text->fd != -1)
1821
+			close(file_tmp_o1->fd);
1821 1822
 		free(file_tmp_o1);
1822 1823
 	}
1823 1824
 	return retval;