Merge pull request #175 from mingnus/2021-04-28-coverity-fixes

Fix resource leak
This commit is contained in:
Joe Thornber 2021-06-04 15:22:24 +01:00 committed by GitHub
commit 01aac6c1c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -159,6 +159,7 @@ file_utils::zero_superblock(std::string const &path)
free(buffer);
throw runtime_error("couldn't zero superblock");
}
free(buffer);
}
//----------------------------------------------------------------