ソースを参照

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 */
 	if (close(fd_in))
 	{