Calls to ovs_fatal from check_ovsdb_error would trigger an asan splat in
the ci. This is a harmless memory leak as the process would always
immediately terminate anyways.
==245041==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 32 byte(s) in 1 object(s) allocated from:
#0 in malloc
#1 in xmalloc__ lib/util.c:141:15
#2 in xmalloc lib/util.c:176:12
#3 in ovsdb_error_valist lib/ovsdb-error.c:40:33
#4 in ovsdb_error lib/ovsdb-error.c:55:13
#5 in ovsdb_log_open ovsdb/log.c
#6 in do_db_name ovsdb/ovsdb-tool.c:482:23
#7 in ovs_cmdl_run_command__ lib/command-line.c:247:17
#8 in main ovsdb/ovsdb-tool.c:82:5
Signed-off-by: Mike Pattrick <[email protected]>
---
ovsdb/ovsdb-client.c | 2 +-
ovsdb/ovsdb-tool.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ovsdb/ovsdb-client.c b/ovsdb/ovsdb-client.c
index 45501911c..3fa1d9afc 100644
--- a/ovsdb/ovsdb-client.c
+++ b/ovsdb/ovsdb-client.c
@@ -555,7 +555,7 @@ static void
check_ovsdb_error(struct ovsdb_error *error)
{
if (error) {
- ovs_fatal(0, "%s", ovsdb_error_to_string(error));
+ ovs_fatal(0, "%s", ovsdb_error_to_string_free(error));
}
}
diff --git a/ovsdb/ovsdb-tool.c b/ovsdb/ovsdb-tool.c
index facd680ff..354382f11 100644
--- a/ovsdb/ovsdb-tool.c
+++ b/ovsdb/ovsdb-tool.c
@@ -247,7 +247,7 @@ static void
check_ovsdb_error(struct ovsdb_error *error)
{
if (error) {
- ovs_fatal(0, "%s", ovsdb_error_to_string(error));
+ ovs_fatal(0, "%s", ovsdb_error_to_string_free(error));
}
}
--
2.43.5
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev