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

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