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

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