[file_utils] Fix resource leak

This commit is contained in:
Ming-Hung Tsai 2021-06-04 21:37:02 +08:00
parent 2413b5d31f
commit 429e7f01d7

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);
}
//----------------------------------------------------------------