Blame SOURCES/0002-mcstrans-Fix-USER_AFTER_FREE-problem.patch

e941f2
From 7a170534163ab9d9159dddfadb996587d98fe30e Mon Sep 17 00:00:00 2001
a5f30d
From: Petr Lautrbach <plautrba@redhat.com>
a5f30d
Date: Thu, 9 May 2019 16:44:43 +0200
a5f30d
Subject: [PATCH] mcstrans: Fix USER_AFTER_FREE problem
a5f30d
a5f30d
---
a5f30d
 mcstrans/src/mcstrans.c | 4 +---
a5f30d
 1 file changed, 1 insertion(+), 3 deletions(-)
a5f30d
a5f30d
diff --git a/mcstrans/src/mcstrans.c b/mcstrans/src/mcstrans.c
e941f2
index d0690e6b0dca..8678418a1570 100644
a5f30d
--- a/mcstrans/src/mcstrans.c
a5f30d
+++ b/mcstrans/src/mcstrans.c
e941f2
@@ -1664,10 +1664,8 @@ untrans_context(const char *incon, char **rcon) {
a5f30d
 							return -1;
a5f30d
 						}
a5f30d
 				}
a5f30d
-				if (canonical) {
a5f30d
+				if (canonical)
a5f30d
 					free(canonical);
a5f30d
-					free(raw);
a5f30d
-				}
a5f30d
 				if (add_cache(domain, raw, range) < 0) {
a5f30d
 					free(range);
a5f30d
 					free(raw);
a5f30d
-- 
e941f2
2.32.0
a5f30d