Opened 16 years ago
Closed 16 years ago
#4957 closed defect (fixed)
dlopen() needs a dlclose() for the dynlib handle to be given up
Reported by: | Owned by: | danielk | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythtv | Version: | head |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
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.
Attachments (1)
Change History (3)
Changed 16 years ago by
Attachment: | libs_libmythtv_filtermanager.cpp-dlcose-dl.patch added |
---|
comment:1 Changed 16 years ago by
Owner: | changed from Isaac Richards to danielk |
---|---|
Status: | new → assigned |
Note: See
TracTickets for help on using
tickets.
does a dlcose at the end of the LoadFilterLib?() member function