Xavier Simonart
4fc02650ae
ovsdb: Fix potential leak when making diff of conditions.
OVN unit tests highlight this:
ERROR: LeakSanitizer: detected memory leaks
Direct leak of 1344 byte(s) in 1 object(s) allocated from:
0 0x4db0b7 in calloc (ovsdb/ovsdb-server+0x4db0b7)
1 0x5c2162 in xcalloc__ lib/util.c:124:31
2 0x5c221c in xcalloc lib/util.c:161:12
3 0x54afbc in ovsdb_condition_diff ovsdb/condition.c:527:21
4 0x529da6 in ovsdb_monitor_table_condition_update ovsdb/monitor.c:824:5
5 0x524fa4 in ovsdb_jsonrpc_parse_monitor_cond_change_request ovsdb/jsonrpc-server.c:1557:13
6 0x5235c3 in ovsdb_jsonrpc_monitor_cond_change ovsdb/jsonrpc-server.c:1624:25
7 0x5217f2 in ovsdb_jsonrpc_session_got_request ovsdb/jsonrpc-server.c:1034:17
8 0x520ee6 in ovsdb_jsonrpc_session_run ovsdb/jsonrpc-server.c:572:17
9 0x51ffbe in ovsdb_jsonrpc_session_run_all ovsdb/jsonrpc-server.c:602:21
10 0x51fbcf in ovsdb_jsonrpc_server_run ovsdb/jsonrpc-server.c:417:9
11 0x517550 in main_loop ovsdb/ovsdb-server.c:224:9
12 0x512e80 in main ovsdb/ovsdb-server.c:507:5
13 0x7f9ecf675b74 in __libc_start_main (/lib64/libc.so.6+0x27b74)
Fixes: ef1da757f016 ("ovsdb: condition: Process condition changes incrementally.")
Signed-off-by: Xavier Simonart <xsimonar@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
2023-09-25 12:53:06 +02:00
..
2021-07-15 22:38:03 +02:00
2021-07-15 22:38:31 +02:00
2022-06-30 11:10:31 +02:00
2022-07-19 19:55:14 +02:00
2018-05-25 13:36:05 -07:00
2014-12-15 14:14:47 +01:00
2023-09-25 12:53:06 +02:00
2023-05-31 21:31:38 +02:00
2020-08-26 13:05:01 +02:00
2023-08-03 14:19:32 +02:00
2023-08-03 14:18:38 +02:00
2022-10-11 21:11:09 +02:00
2023-09-25 12:53:06 +02:00
2018-03-24 12:04:53 -07:00
2022-07-29 17:05:42 +02:00
2014-11-11 22:08:41 -08:00
2022-06-30 11:10:31 +02:00
2022-06-30 11:10:31 +02:00
2023-04-24 22:34:49 +02:00
2023-04-24 22:34:49 +02:00
2023-09-25 12:53:06 +02:00
2019-02-28 10:26:18 -08:00
2022-07-13 20:33:07 +02:00
2014-12-15 14:14:47 +01:00
2021-06-07 21:03:16 +02:00
2023-09-25 12:53:06 +02:00
2023-08-25 22:05:40 +02:00
2019-09-27 09:23:50 -07:00
2018-02-28 12:46:01 -08:00
2022-11-30 15:15:57 +01:00
2017-12-14 11:21:42 -08:00
2022-06-28 13:45:36 +02:00
2023-09-01 22:15:05 +02:00
2022-07-14 15:24:07 +02:00
2023-08-03 14:33:04 +02:00
2023-07-12 00:22:02 +02:00
2018-03-24 12:04:53 -07:00
2023-04-24 22:42:25 +02:00
2023-04-24 22:42:25 +02:00
2022-03-30 16:59:02 +02:00
2012-05-02 17:08:02 -07:00
2022-03-30 16:59:02 +02:00
2021-09-01 00:14:42 +02:00
2023-08-31 17:14:44 +02:00
2023-08-31 17:14:44 +02:00
2023-08-31 17:14:44 +02:00
2023-06-30 00:03:36 +02:00
2021-11-30 13:34:03 +01:00
2017-06-08 13:58:27 -07:00
2023-08-03 14:29:12 +02:00
2023-07-17 19:51:39 +02:00
2022-03-30 16:59:02 +02:00
2020-10-16 19:22:24 -07:00
2023-09-25 12:53:06 +02:00
2023-08-03 14:19:32 +02:00
2018-03-24 12:04:53 -07:00
2018-03-24 12:04:53 -07:00
2023-04-24 22:34:56 +02:00
2023-04-24 22:34:56 +02:00
2023-08-03 14:19:32 +02:00
2022-06-28 13:45:36 +02:00
2022-07-14 15:24:07 +02:00
2022-03-30 16:59:02 +02:00
2021-07-15 22:38:07 +02:00
2023-09-01 22:15:05 +02:00
2023-04-24 22:42:25 +02:00
2023-04-24 22:42:25 +02:00
2023-04-24 22:42:25 +02:00