]> sourceware.org Git - systemtap.git/commitdiff
Added a bug fix in _stp_stat_init()'s error handling code.
authorDavid Smith <dsmith@redhat.com>
Fri, 19 Oct 2012 19:21:11 +0000 (14:21 -0500)
committerDavid Smith <dsmith@redhat.com>
Fri, 19 Oct 2012 19:21:11 +0000 (14:21 -0500)
* runtime/stat.c (_stp_stat_init): Be sure to free memory allocated with
  _stp_alloc_percpu() with _stp_free_percpu() - not _stp_kfree().

runtime/stat.c

index d8a9fe4b01887aaa895ccb94a7886f268f5c746c..baf5d994fc258fcde6b1f43a41a68985a590c254 100644 (file)
@@ -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
This page took 0.028407 seconds and 5 git commands to generate.