Browse Source

fxt: fix memleak

Samuel Thibault 4 years ago
parent
commit
6b8954f325
1 changed files with 3 additions and 0 deletions
  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))
 	{