[ltt-dev] [PATCH 05/10] avoid memory leak in call_rcu_data_free()
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Thu Sep 15 11:14:34 EDT 2011
* Lai Jiangshan (laijs at cn.fujitsu.com) wrote:
> Signed-off-by: Lai Jiangshan <laijs at cn.fujitsu.com>
Merged, thanks!
Mathieu
> ---
> urcu-call-rcu-impl.h | 5 +++--
> 1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/urcu-call-rcu-impl.h b/urcu-call-rcu-impl.h
> index 6cb08be..1ab49bc 100644
> --- a/urcu-call-rcu-impl.h
> +++ b/urcu-call-rcu-impl.h
> @@ -600,9 +600,10 @@ void call_rcu_data_free(struct call_rcu_data *crdp)
> *cbs_endprev = cbs;
> uatomic_add(&default_call_rcu_data->qlen,
> uatomic_read(&crdp->qlen));
> - cds_list_del(&crdp->list);
> - free(crdp);
> }
> +
> + cds_list_del(&crdp->list);
> + free(crdp);
> }
>
> /*
> --
> 1.7.4.4
>
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list