Merge pull request #175 from mingnus/2021-04-28-coverity-fixes
Fix resource leak
This commit is contained in:
commit
01aac6c1c1
@ -159,6 +159,7 @@ file_utils::zero_superblock(std::string const &path)
|
||||
free(buffer);
|
||||
throw runtime_error("couldn't zero superblock");
|
||||
}
|
||||
free(buffer);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user