Fix: getcpu/clock plugin handle leak
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 14 Apr 2015 22:13:19 +0000 (18:13 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 14 Apr 2015 22:13:19 +0000 (18:13 -0400)
commit4bc1ccd721114691c6f0dbd65335b3c43c9f895f
treedb972eb3614479438bfcfe5a7b8615ad03e0ab56
parent23b2b925a8e1e6f1730ad83b6331306c1fa88001
Fix: getcpu/clock plugin handle leak

Keep the handle to the shared object in a static variable. Use it to
check whether it has already been initialized.

We don't allow dlclose() for now though, so it technically leaks, but at
least we keep a reference to the handle.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-clock.c
liblttng-ust/lttng-getcpu.c
This page took 0.026606 seconds and 4 git commands to generate.