Blame SOURCES/netcf-Fix-memory-leak-in-aug_match_mac.patch

46e910
From 26866552d648bded38e9c97112f97c5ab114887c Mon Sep 17 00:00:00 2001
46e910
From: Laine Stump <laine@laine.org>
46e910
Date: Mon, 17 Sep 2018 10:00:50 -0400
46e910
Subject: [PATCH 1/7] Fix memory leak in aug_match_mac()
46e910
46e910
mac_lower has memory allocated to it, but it was only freed in case of
46e910
an error.
46e910
46e910
Signed-off-by: Laine Stump <laine@laine.org>
46e910
(cherry picked from commit 478da0f8f31252be2e9e96430a8e56d9b28642ed)
46e910
46e910
Resolves: https://bugzilla.redhat.com/1602628
46e910
Signed-off-by: Laine Stump <laine@laine.org>
46e910
---
46e910
 src/dutil_linux.c | 1 +
46e910
 1 file changed, 1 insertion(+)
46e910
46e910
diff --git a/src/dutil_linux.c b/src/dutil_linux.c
46e910
index 022eed0..3a75f16 100644
46e910
--- a/src/dutil_linux.c
46e910
+++ b/src/dutil_linux.c
46e910
@@ -424,6 +424,7 @@ int aug_match_mac(struct netcf *ncf, const char *mac, char ***matches) {
46e910
         (*matches)[i] = n;
46e910
     }
46e910
 
46e910
+    FREE(mac_lower);
46e910
     return nmatches;
46e910
 
46e910
  error:
46e910
-- 
46e910
2.18.1
46e910