From 91f35e84a9051b709fb7cf1b0ec02a8434258dd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ezina?= Date: Tue, 20 Nov 2018 12:25:01 +0100 Subject: [PATCH 07/15] lib: fix memory leak in authselect_config_validate_existing Resolves: https://github.com/pbrezina/authselect/issues/115 --- src/lib/files/config.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/files/config.c b/src/lib/files/config.c index 14434a819acc0bf3246c51be7090133d868a9571..e2859b04d3aeb40d510c0e87dc251adb1ff38b47 100644 --- a/src/lib/files/config.c +++ b/src/lib/files/config.c @@ -201,6 +201,8 @@ authselect_config_validate_existing(const char *profile_id, /* Check that symlinks exist and point to generated files. */ result &= authselect_symlinks_validate(); + authselect_files_free(files); + return result; } -- 2.17.2