Explorar el Código

Add missing free

Samuel Thibault hace 8 años
padre
commit
f316128b31
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/core/perfmodel/perfmodel_history.c

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

@@ -1345,6 +1345,8 @@ int starpu_perfmodel_unload_model(struct starpu_perfmodel *model)
 		model->symbol = NULL;
 	}
 	_starpu_deinitialize_performance_model(model);
+	free(model->state);
+	model->state = NULL;
 	return 0;
 }