mirror of
https://github.com/wiiu-env/libwupsbackend.git
synced 2024-11-21 17:29:19 +01:00
Fix type cast on malloc
This commit is contained in:
parent
bd2f5461ab
commit
44761b322b
@ -112,7 +112,7 @@ std::vector<PluginContainer> PluginUtils::getLoadedPlugins(uint32_t maxSize) {
|
||||
return result;
|
||||
}
|
||||
|
||||
plugin_data_handle *dataHandles = (plugin_container_handle *) malloc(realSize * sizeof(plugin_container_handle));
|
||||
plugin_data_handle *dataHandles = (plugin_data_handle *) malloc(realSize * sizeof(plugin_data_handle));
|
||||
if(!dataHandles){
|
||||
free(handles);
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user