authselect/SOURCES/0036-authselect-fix-memory-leak-of-maps.patch
2021-09-09 14:53:19 +00:00

25 lines
718 B
Diff

From 196b795ec659da30e6f59446227886062d29fe1a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
Date: Wed, 10 Oct 2018 14:38:24 +0200
Subject: [PATCH 01/21] authselect: fix memory leak of maps
---
src/cli/main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/cli/main.c b/src/cli/main.c
index 6179af6af5d727328c2dd452363035130ac82dd4..9d60db3da6f483bc42233341a1a01d0013a6a809 100644
--- a/src/cli/main.c
+++ b/src/cli/main.c
@@ -186,6 +186,7 @@ static errno_t activate(struct cli_cmdline *cmdline)
done:
free(requirements);
+ authselect_array_free(maps);
authselect_profile_free(profile);
if (features != NULL) {
free(features);
--
2.17.2