Blame SOURCES/0009-coverity-fixes-def21.patch

91b162
From 9c28424364eeac530e9ea2103b8436e1ed1a53de Mon Sep 17 00:00:00 2001
91b162
From: Matej Habrnal <mhabrnal@redhat.com>
91b162
Date: Mon, 6 Aug 2018 15:39:45 +0200
91b162
Subject: [PATCH] coverity fixes [#def21]
91b162
91b162
libreport-2.9.5/src/lib/event_config.c:465: leaked_storage: Variable "err"
91b162
going out of scope leaks the storage it points to.
91b162
91b162
https://cov01.lab.eng.brq.redhat.com/el8-results/el8/libreport-2.9.5-2.el8+7/scan-results.html#def21
91b162
91b162
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
91b162
---
91b162
 src/lib/event_config.c | 2 ++
91b162
 1 file changed, 2 insertions(+)
91b162
91b162
diff --git a/src/lib/event_config.c b/src/lib/event_config.c
91b162
index 88334db1..bbc8d33c 100644
91b162
--- a/src/lib/event_config.c
91b162
+++ b/src/lib/event_config.c
91b162
@@ -461,6 +461,8 @@ GList *get_options_with_err_msg(const char *event_name)
91b162
             inv_opt->invopt_name = xstrdup(opt->eo_name);
91b162
             inv_opt->invopt_error = xstrdup(err);
91b162
             err_list = g_list_prepend(err_list, inv_opt);
91b162
+
91b162
+            free(err);
91b162
         }
91b162
     }
91b162
 
91b162
-- 
91b162
2.17.1
91b162