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

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