]> git.ipfire.org Git - thirdparty/systemd.git/commit
sleep: fix memleak 26159/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 23 Jan 2023 14:50:36 +0000 (15:50 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 23 Jan 2023 21:06:05 +0000 (22:06 +0100)
commitde5d8b40eda84cfd546c9d969a191ce4615e6375
tree175c36d98acd25261a6427099b502f5fde068124
parent099810a65b8d7e7e83098edff144643b77011a85
sleep: fix memleak

Those hashmaps are created anew in each iteration of the loop. The
leak wasn't really a problem, because the loop is bounded and the
hashmaps were not huge, but it's nicer to be correct.
src/sleep/sleep.c