Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use close_module_list() to free the list.
There are a pair of Coverity CIDs for these two.
- Loading branch information
1 parent
fc11b68
commit e4a05be
Showing
2 changed files
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -464,6 +464,8 @@ get_device_interface(const char* name, bool create) | |
} | ||
} | ||
|
||
close_module_list(cookie); | ||
|
||
return NULL; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -759,6 +759,8 @@ scan_modules(const char* path) | |
put_module(name); | ||
} | ||
} | ||
|
||
close_module_list(cookie); | ||
} | ||
|
||
|
||
|