diff --git a/src/hwdep/hwdep.c b/src/hwdep/hwdep.c index 4d4490cd..300c62a5 100644 --- a/src/hwdep/hwdep.c +++ b/src/hwdep/hwdep.c @@ -207,6 +207,8 @@ int snd_hwdep_close(snd_hwdep_t *hwdep) int err; assert(hwdep); err = hwdep->ops->close(hwdep); + if (hwdep->dl_handle) + snd_dlclose(hwdep->dl_handle); free(hwdep->name); free(hwdep); return err;