diff options
author | Ivanov Mikhail <[email protected]> | 2024-03-26 17:56:25 +0800 |
---|---|---|
committer | Mickaël Salaün <[email protected]> | 2024-05-13 06:58:26 +0200 |
commit | 42212936d9d811c7cf6efc4804747a6c417aafd4 (patch) | |
tree | 65d157f3d26532c204d20d05c8415108bee560ac /tools/perf/scripts/python/export-to-postgresql.py | |
parent | a38297e3fb012ddfa7ce0321a7e5a8daeb1872b6 (diff) |
samples/landlock: Fix incorrect free in populate_ruleset_net
Pointer env_port_name changes after strsep(). Memory allocated via
strdup() will not be freed if landlock_add_rule() returns non-zero value.
Fixes: 5e990dcef12e ("samples/landlock: Support TCP restrictions")
Signed-off-by: Ivanov Mikhail <[email protected]>
Reviewed-by: Konstantin Meskhidze <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mickaël Salaün <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions