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 19:10:33 +0100
commit96a44f09e341e304469b988fde5aa8e1be0cd660 (patch)
tree77bfb2e767ac21e809c83359abb2eff827b2f189
parent39c4c536f0909d9195b13cf3fa543954eb65b13a (diff)
downloadopenvswitch-96a44f09e341e304469b988fde5aa8e1be0cd660.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 32883e20c..de2015639 100644
--- a/ovsdb/ovsdb-tool.c
+++ b/ovsdb/ovsdb-tool.c
@@ -458,6 +458,7 @@ print_db_changes(struct shash *tables, struct shash *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);
}