Explorar el Código

src/core/perfmodel/perfmodel_history.c: free internal memory model

Nathalie Furmento hace 11 años
padre
commit
b7785fce25
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/core/perfmodel/perfmodel_history.c

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

@@ -863,6 +863,9 @@ void _starpu_deinitialize_registered_performance_models(void)
 		_starpu_deinitialize_performance_model(model);
 		STARPU_PTHREAD_RWLOCK_UNLOCK(&model->state->model_rwlock);
 
+		free(node->model->state);
+		node->model->state = NULL;
+
 		pnode = node;
 		node = node->next;
 		free(pnode);