mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
Prevent memory leak on bad module dir (fix Coverity defect 114172).
This commit is contained in:
parent
27b27644c4
commit
c1d1e7cb5a
1 changed files with 1 additions and 0 deletions
|
@ -101,6 +101,7 @@ Module::fromDescriptor( const QVariantMap& moduleDescriptor,
|
|||
{
|
||||
cLog() << Q_FUNC_INFO << "bad module directory"
|
||||
<< instanceId;
|
||||
delete m;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue