diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2020-12-14 18:31:18 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2020-12-15 10:59:31 +0100 |
commit | ec7d8ddb295b888a17b5e0a6e85181d6ea512877 (patch) | |
tree | fbd68e40b7edc1b85bb02adadf915d7a8e6c7fcd | |
parent | a60ea8af7d9e020beaf9faf643f5c98132edf9f1 (diff) | |
download | NetworkManager-ec7d8ddb295b888a17b5e0a6e85181d6ea512877.tar.gz |
ovs: fix leaks
Fixes: 1eeca3c606ab ('core/ovs: track external-ids for cached ovsdb objects')
-rw-r--r-- | src/devices/ovs/nm-ovsdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/ovs/nm-ovsdb.c b/src/devices/ovs/nm-ovsdb.c index 08bf573880..562cd1d0c7 100644 --- a/src/devices/ovs/nm-ovsdb.c +++ b/src/devices/ovs/nm-ovsdb.c @@ -1770,7 +1770,7 @@ ovsdb_got_update(NMOvsdb *self, json_t *msg) nm_assert(nm_streq0(ovs_port->name, name)); changed |= nm_utils_strdup_reset(&ovs_port->name, name); - changed |= nm_utils_strdup_reset(&ovs_port->connection_uuid, g_strdup(connection_uuid)); + changed |= nm_utils_strdup_reset(&ovs_port->connection_uuid, connection_uuid); if (nm_strv_ptrarray_cmp(ovs_port->interfaces, interfaces) != 0) { NM_SWAP(&ovs_port->interfaces, &interfaces); changed = TRUE; @@ -1876,7 +1876,7 @@ ovsdb_got_update(NMOvsdb *self, json_t *msg) changed = nm_utils_strdup_reset(&ovs_bridge->name, name); changed = - nm_utils_strdup_reset(&ovs_bridge->connection_uuid, g_strdup(connection_uuid)); + nm_utils_strdup_reset(&ovs_bridge->connection_uuid, connection_uuid); if (nm_strv_ptrarray_cmp(ovs_bridge->ports, ports) != 0) { NM_SWAP(&ovs_bridge->ports, &ports); changed = TRUE; |