Opened 18 years ago
Closed 18 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)
by , 18 years ago
| Attachment: | libs_libmythtv_filtermanager.cpp-dlcose-dl.patch added |
|---|
comment:1 by , 18 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.

does a dlcose at the end of the LoadFilterLib() member function