samples/landlock: Fix path_list memory leak
[platform/kernel/linux-rpi.git] / samples / landlock / sandboxer.c
index 7a15910..8859fc1 100644 (file)
@@ -134,6 +134,7 @@ static int populate_ruleset(
        ret = 0;
 
 out_free_name:
+       free(path_list);
        free(env_path_name);
        return ret;
 }