浏览代码

Closing a (forgotten) file descriptor.

[scan-build] Resource Leak.
Cyril Roelandt 14 年之前
父节点
当前提交
9f5d13014f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/core/perfmodel/perfmodel_history.c

+ 2 - 0
src/core/perfmodel/perfmodel_history.c

@@ -775,6 +775,8 @@ int starpu_load_history_debug(const char *symbol, struct starpu_perfmodel_t *mod
 
 	parse_model_file(f, model, 1);
 
+	STARPU_ASSERT(fclose(f) == 0);
+
 	return 0;
 }