From: David Smith Date: Fri, 19 Oct 2012 19:21:11 +0000 (-0500) Subject: Added a bug fix in _stp_stat_init()'s error handling code. X-Git-Tag: release-2.1~346 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=70d00a5edbda704a6f9c8f9abd5aca37f1d259cf;p=systemtap.git Added a bug fix in _stp_stat_init()'s error handling code. * runtime/stat.c (_stp_stat_init): Be sure to free memory allocated with _stp_alloc_percpu() with _stp_free_percpu() - not _stp_kfree(). --- diff --git a/runtime/stat.c b/runtime/stat.c index d8a9fe4b0..baf5d994f 100644 --- a/runtime/stat.c +++ b/runtime/stat.c @@ -189,7 +189,7 @@ static Stat _stp_stat_init (int type, ...) exit2: #ifdef __KERNEL__ - _stp_kfree (sd); + _stp_free_percpu (sd); #else _stp_tls_data_container_cleanup(&st->container); #endif