Use close_module_list() to free the list.
There are a pair of Coverity CIDs for these two.
This commit is contained in:
@@ -464,6 +464,8 @@ get_device_interface(const char* name, bool create)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
close_module_list(cookie);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -759,6 +759,8 @@ scan_modules(const char* path)
|
|||||||
put_module(name);
|
put_module(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
close_module_list(cookie);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user