Blame SOURCES/0003-validate-Don-t-leak-files.patch

1d4d7c
From f4f65ea3e895eaab87af049300d2d69ba3d51c9f Mon Sep 17 00:00:00 2001
1d4d7c
From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= <fidencio@redhat.com>
1d4d7c
Date: Mon, 20 May 2019 14:28:22 +0200
1d4d7c
Subject: [PATCH 3/3] validate: Don't leak "files"
1d4d7c
MIME-Version: 1.0
1d4d7c
Content-Type: text/plain; charset=UTF-8
1d4d7c
Content-Transfer-Encoding: 8bit
1d4d7c
1d4d7c
Error: CLANG_WARNING:
1d4d7c
osinfo-db-tools-1.5.0/tools/osinfo-db-validate.c:319:9: warning:
1d4d7c
Potential leak of memory pointed to by 'files'
1d4d7c
 #        g_printerr("%s\n", error->message);
1d4d7c
 #        ^
1d4d7c
1d4d7c
Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>
1d4d7c
Reviewed-by: Cole Robinson <crobinso@redhat.com>
1d4d7c
(cherry picked from commit 7ac63b928df3f445ede81cac0ade0ed6d810c3cb)
1d4d7c
---
1d4d7c
 tools/osinfo-db-validate.c | 1 +
1d4d7c
 1 file changed, 1 insertion(+)
1d4d7c
1d4d7c
diff --git a/tools/osinfo-db-validate.c b/tools/osinfo-db-validate.c
1d4d7c
index 0e28e1c..7fd87d2 100644
1d4d7c
--- a/tools/osinfo-db-validate.c
1d4d7c
+++ b/tools/osinfo-db-validate.c
1d4d7c
@@ -327,6 +327,7 @@ gint main(gint argc, gchar **argv)
1d4d7c
         g_object_unref(schema);
1d4d7c
     if (dir)
1d4d7c
         g_object_unref(dir);
1d4d7c
+    g_free(files);
1d4d7c
     g_clear_error(&error);
1d4d7c
     g_option_context_free(context);
1d4d7c
 
1d4d7c
-- 
1d4d7c
2.21.0
1d4d7c