Blame SOURCES/0015-libmultipath-free-allocated-value-in-set_int.patch

5c2e41
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
5c2e41
From: Benjamin Marzinski <bmarzins@redhat.com>
5c2e41
Date: Thu, 11 Oct 2018 15:14:25 -0500
5c2e41
Subject: [PATCH] libmultipath: free allocated value in set_int
5c2e41
5c2e41
set_int() needs to free the buffer it got back from set_value()
5c2e41
5c2e41
Fixes: 8f9ac30d ("libmultipath: fix set_int error path")
5c2e41
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
5c2e41
---
5c2e41
 libmultipath/dict.c | 1 +
5c2e41
 1 file changed, 1 insertion(+)
5c2e41
5c2e41
diff --git a/libmultipath/dict.c b/libmultipath/dict.c
5c2e41
index 9d63d26..47ddce7 100644
5c2e41
--- a/libmultipath/dict.c
5c2e41
+++ b/libmultipath/dict.c
5c2e41
@@ -39,6 +39,7 @@ set_int(vector strvec, void *ptr)
5c2e41
 
5c2e41
 	*int_ptr = atoi(buff);
5c2e41
 
5c2e41
+	FREE(buff);
5c2e41
 	return 0;
5c2e41
 }
5c2e41
 
5c2e41
-- 
5c2e41
2.17.1
5c2e41