瀏覽代碼

fxt: fix memleak

Samuel Thibault 4 年之前
父節點
當前提交
6b8954f325
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/debug/traces/starpu_fxt.c

+ 3 - 0
src/debug/traces/starpu_fxt.c

@@ -4248,6 +4248,9 @@ void _starpu_fxt_parse_new_file(char *filename_in, struct starpu_fxt_options *op
 		}
 		}
 	}
 	}
 
 
+	for (i = 0; i < STARPU_NMAXWORKERS; i++)
+		free(options->worker_archtypes[i].devices);
+
 	/* Close the trace file */
 	/* Close the trace file */
 	if (close(fd_in))
 	if (close(fd_in))
 	{
 	{