diff --git a/src/system/kernel/device_manager/probe.cpp b/src/system/kernel/device_manager/probe.cpp index 1daf2af74f..5fb5376336 100644 --- a/src/system/kernel/device_manager/probe.cpp +++ b/src/system/kernel/device_manager/probe.cpp @@ -895,8 +895,10 @@ get_loaded_modules(struct list *modules, const char *bus, const char *device) driver_module_info *info; if (get_module(name, (module_info **)&info) == B_OK) { - if (info->get_supported_paths == NULL) + if (info->get_supported_paths == NULL) { + put_module(name); continue; + } const char **busses, **devices; info->get_supported_paths(&busses, &devices);