소스 검색

db_text: close file stream in case of error reading table file

Daniel-Constantin Mierla 8 년 전
부모
커밋
cdf2976b85
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/modules/db_text/dbt_file.c

+ 2 - 0
src/modules/db_text/dbt_file.c

@@ -489,6 +489,8 @@ clean:
 	LM_DBG("error at row=%d col=%d c=%c\n", crow+1, ccol+1, c);
 	if(dtp)
 		dbt_table_free(dtp);
+	if(fin)
+		fclose(fin);
 	if(buf)
 		pkg_free(buf);
 	return NULL;