Re: [Nouveau] [PATCH] drm/nouveau: fix memory leak in nouveau_conn_reset()

2019-07-03 Thread Ben Skeggs
On Mon, 1 Jul 2019 at 12:37, Yongxin Liu wrote: > > In nouveau_conn_reset(), if connector->state is true, > __drm_atomic_helper_connector_destroy_state() will be called, > but the memory pointed by asyc isn't freed. Memory leak happens > in the following function __drm_atomic_helper_connector_rese

[PATCH] drm/nouveau: fix memory leak in nouveau_conn_reset()

2019-07-01 Thread Yongxin Liu
In nouveau_conn_reset(), if connector->state is true, __drm_atomic_helper_connector_destroy_state() will be called, but the memory pointed by asyc isn't freed. Memory leak happens in the following function __drm_atomic_helper_connector_reset(), where newly allocated asyc->state will be assigned to