Use close_module_list() to free the list.

There are a pair of Coverity CIDs for these two.
This commit is contained in:
Stefano Ceccherini
2013-01-07 21:17:52 +01:00
parent fc11b68310
commit e4a05be459
2 changed files with 4 additions and 0 deletions
@@ -464,6 +464,8 @@ get_device_interface(const char* name, bool create)
}
}
close_module_list(cookie);
return NULL;
}
@@ -759,6 +759,8 @@ scan_modules(const char* path)
put_module(name);
}
}
close_module_list(cookie);
}