]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/execute: fix strv memleak
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 25 Jan 2017 03:24:07 +0000 (22:24 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 25 Jan 2017 03:26:10 +0000 (22:26 -0500)
commit06ec51d8ef30dce3c7f864633ba3a9888d18fed6
treed06dee68003fd57c2a163b8797f9d1befb907e2c
parentf0c03de85afa93d1df2bb533a46748e7f4264af6
core/execute: fix strv memleak

compile_read_write_paths() returns a normal strv from strv_copy(), and
setup_namespace() uses it read-only, so we should use strv_free to deallocate.
src/core/execute.c