]> git.ipfire.org Git - thirdparty/systemd.git/commit
mstack: fix resource leak on failure path
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 20 Feb 2026 07:18:07 +0000 (16:18 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 20 Feb 2026 07:21:48 +0000 (16:21 +0900)
commitb78db85bca664b6ae5c0babb6ee12a938f6e6211
tree50dc2220756641e63b79172a79d4fd453afdd4f7
parent298fc566417ec4f4a7f4710a44c2499bd3578947
mstack: fix resource leak on failure path

This makes the mstack_load() requires 'ret', as clearing the loaded
mstack without use is meaningless. All callers already pass non-NULL for
the argument.

Follow-up for 8343032a86b62f62780de85a696ab8f9d2632244.
Fixes CID#1645105.
src/shared/mstack.c