]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-routing-policy-rule.c
networkd: plug some memleaks in rule serialization/deserialization
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 27 Nov 2017 12:01:41 +0000 (12:01 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 28 Nov 2017 08:25:38 +0000 (09:25 +0100)
commit93f9da6e0a9e701e4532056754c2d867e86d8dd6
tree2e66ae60a56dbd043eb6abd2e7e4884093ed6e82
parent9491f55f74a1c61a8c6c79c3ef16a32f2722e232
networkd: plug some memleaks in rule serialization/deserialization

This fixes the (mostly theoretical, since we're only parsing data that we write
ourselves) memleak when iif or oif is deserialized multiple times. Unfortunately
it does not fix the memleak when rule is freed, but that'll require a bigger
effort.
src/network/networkd-routing-policy-rule.c
src/network/test-routing-policy-rule.c