Sfoglia il codice sorgente

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

Nathalie Furmento 11 anni fa
parent
commit
bc04801ad7
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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);