Blame SOURCES/0011-file_utils-Fix-resource-leak.patch

5a5b1b
From 677fa789e4136dbdd589c1e65efc7cdaad7506ac Mon Sep 17 00:00:00 2001
5a5b1b
From: Ming-Hung Tsai <mtsai@redhat.com>
5a5b1b
Date: Fri, 4 Jun 2021 21:37:02 +0800
5a5b1b
Subject: [PATCH 1/2] [file_utils] Fix resource leak
5a5b1b
5a5b1b
---
5a5b1b
 base/file_utils.cc | 1 +
5a5b1b
 1 file changed, 1 insertion(+)
5a5b1b
5a5b1b
diff --git a/base/file_utils.cc b/base/file_utils.cc
5a5b1b
index 8253660..e6095f7 100644
5a5b1b
--- a/base/file_utils.cc
5a5b1b
+++ b/base/file_utils.cc
5a5b1b
@@ -159,6 +159,7 @@ file_utils::zero_superblock(std::string const &path)
5a5b1b
 		free(buffer);
5a5b1b
 		throw runtime_error("couldn't zero superblock");
5a5b1b
 	}
5a5b1b
+	free(buffer);
5a5b1b
 }
5a5b1b
 
5a5b1b
 //----------------------------------------------------------------
5a5b1b
-- 
5a5b1b
1.8.3.1
5a5b1b