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

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