Explorar el Código

fxt: fix memleak

Samuel Thibault hace 4 años
padre
commit
6b8954f325
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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))
 	{