浏览代码

fix starpu_fxt_tool -o

Lucas Nesi 4 年之前
父节点
当前提交
27741af472
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      tools/starpu_fxt_tool.c

+ 2 - 1
tools/starpu_fxt_tool.c

@@ -73,7 +73,8 @@ static int parse_args(int argc, char **argv)
 
 
 		if (strcmp(argv[i], "-o") == 0)
 		if (strcmp(argv[i], "-o") == 0)
 		{
 		{
-			options.out_paje_path = argv[++i];
+			free(options.out_paje_path);
+			options.out_paje_path = strdup(argv[++i]);
 			reading_input_filenames = 0;
 			reading_input_filenames = 0;
 			continue;
 			continue;
 		}
 		}