Browse Source

Add missing free

Samuel Thibault 8 years ago
parent
commit
f316128b31
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

@@ -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;
 }