소스 검색

src/core/perfmodel/perfmodel_history.c: free temporary allocated
memory

Nathalie Furmento 11 년 전
부모
커밋
bc04801ad7
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/core/perfmodel/perfmodel_history.c

+ 2 - 0
src/core/perfmodel/perfmodel_history.c

@@ -1486,6 +1486,8 @@ struct starpu_perfmodel_per_arch *_starpu_perfmodel_get_model_per_devices(struct
 	if (comb == -1)
 		comb = starpu_perfmodel_arch_comb_add(arch.ndevices, arch.devices);
 
+	free(arch.devices);
+
 	// Realloc if necessary
 	if (comb >= model->state->ncombs_set)
 		_starpu_perfmodel_realloc(model, comb+1);