]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-socket-util: avoid "memleak" reported by valgrind
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 21 Aug 2018 17:44:48 +0000 (19:44 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 23 Aug 2018 09:30:57 +0000 (11:30 +0200)
commit181c4ba750770b54a54b5abbe8ae8ff4f6db59b5
treec058d79b3990a61975efcc875bca97ab908404c1
parentb5d6f7ead6296038d215da4d45cb43b4af7aa9e7
test-socket-util: avoid "memleak" reported by valgrind

valgrind reports the allocation done in the short-lived child as a leak.
Let's restructure the code to avoid this.
src/test/test-socket-util.c