summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@ovn.org>2020-12-17 18:22:12 +0100
committerIlya Maximets <i.maximets@ovn.org>2020-12-21 20:25:59 +0100
commit9eeb44aadd63be7a1ef9f7fe5cfef8005935313b (patch)
treeed7350c0c1ffcb4ad3ff9381b18186ae9ee4ce60
parentb2b7e388f4d75baaa894e0433d51e09f944f2c5a (diff)
downloadopenvswitch-9eeb44aadd63be7a1ef9f7fe5cfef8005935313b.tar.gz
ovsdb-tool: Fix datum leak in the show-log command.
Fixes: 4e92542cefb7 ("ovsdb-tool: Make "show-log" convert raw JSON to easier-to-read syntax.") Signed-off-by: Ilya Maximets <i.maximets@ovn.org> Acked-by: Dumitru Ceara <dceara@redhat.com>
-rw-r--r--ovsdb/ovsdb-tool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ovsdb/ovsdb-tool.c b/ovsdb/ovsdb-tool.c
index 30d0472b2..1b49b6fc8 100644
--- a/ovsdb/ovsdb-tool.c
+++ b/ovsdb/ovsdb-tool.c
@@ -720,6 +720,7 @@ print_db_changes(struct shash *tables, struct smap *names,
ds_init(&s);
ovsdb_datum_to_string(&datum, type, &s);
value_string = ds_steal_cstr(&s);
+ ovsdb_datum_destroy(&datum, type);
} else {
ovsdb_error_destroy(error);
}