summaryrefslogtreecommitdiff
path: root/src/network/networkd-network.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-03-24 23:45:33 +0100
committerLennart Poettering <lennart@poettering.net>2014-03-24 23:46:13 +0100
commit79e16ce3bf734434081e57f1170333277830a592 (patch)
tree5edbca6884ba0427ad743a09be2ae1fbc48512f4 /src/network/networkd-network.c
parentc3ebdce39a748f738f3731730cd085ff3551b379 (diff)
networkd: fix a couple of memory leaks
Diffstat (limited to 'src/network/networkd-network.c')
-rw-r--r--src/network/networkd-network.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index 776a9d3040..47fab4ecb0 100644
--- a/src/network/networkd-network.c
+++ b/src/network/networkd-network.c
@@ -176,6 +176,11 @@ void network_free(Network *network) {
if (network->manager && network->manager->networks)
LIST_REMOVE(networks, network->manager->networks, network);
+ condition_free_list(network->match_host);
+ condition_free_list(network->match_virt);
+ condition_free_list(network->match_kernel);
+ condition_free_list(network->match_arch);
+
free(network);
}