[mythtv-commits] Ticket #4957: dlopen() needs a dlclose() for the dynlib handle to be given up
MythTV
mythtv at cvs.mythtv.org
Sat Mar 15 01:05:47 UTC 2008
#4957: dlopen() needs a dlclose() for the dynlib handle to be given up
---------------------------------------------+------------------------------
Reporter: Erik Hovland <erik at hovland.org> | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: mythtv | Version: head
Severity: low | Mlocked: 0
---------------------------------------------+------------------------------
In filtermanager.cpp there is a call to dlopen(). There is no
corresponding call to dlclose(). The dynlib will be ref count incremented
on the dlopen(). So the handle will never be reclaimed unless the count is
decremented by the dlclose().
Closing the dynlib handle does not mean the symbol is closed too. Only
that the ref count on the dynlib is decremented. When the symbol is closed
the handle will eventually have a ref count of zero and the handle will be
reclaimed.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/4957>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list