Fix for segfault due to erroneous free() in case of scandir failed to scan directory (git commit 5f210b5b2b0b150acf8f4b5890c9811cd65e2aa9) re-randomize after list is through (upstream git commit a0ddc0dcff5d43871f8c0e87dfb5d2c49671ac30)
Fix for segfault due to erroneous free() in case of scandir failed to scan directory (git commit 5f210b5b2b0b150acf8f4b5890c9811cd65e2aa9) re-randomize after list is through (upstream git commit a0ddc0dcff5d43871f8c0e87dfb5d2c49671ac30)