=== modified file 'mandos.lsm' --- mandos.lsm 2017-02-23 20:35:20 +0000 +++ mandos.lsm 2017-06-24 10:08:21 +0000 @@ -1,7 +1,7 @@ Begin4 Title: Mandos Version: 1.7.15 -Entered-date: 2017-02-23 +Entered-date: 2017-06-24 Description: The Mandos system allows computers to have encrypted root file systems and at the same time be capable of remote and/or unattended reboots. === modified file 'plugins.d/password-prompt.c' --- plugins.d/password-prompt.c 2017-02-23 19:11:11 +0000 +++ plugins.d/password-prompt.c 2017-06-24 10:08:21 +0000 @@ -215,6 +215,12 @@ if(ret == -1){ error_plus(1, errno, "scandir"); } + { + int i = ret; + while(i--){ + free(direntries[i]); + } + } free(direntries); return ret > 0; }