Browse Source

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

Nathalie Furmento 11 years ago
parent
commit
bc04801ad7
1 changed files with 2 additions and 0 deletions
  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);