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)
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>

No differences found
This page took 0.024584 seconds and 4 git commands to generate.