On Mon, Sep 2, 2024 at 5:28 AM Xavier Simonart <[email protected]> wrote:
>
> In the following case, we could see multiple leaks detected for memory 
> allocated
> by ovsdb_idl_txn_add_map_op: insert a row in a table, set a key and delete 
> the row
> (all within the same transaction).
>
> For instance:
> Direct leak of 24 byte(s) in 1 object(s) allocated from:
>     0 0x4e60a7 in calloc (./tests/test-ovsdb+0x4e60a7)
>     1 0x5f9b32 in xcalloc__ ./lib/util.c:125:31
>     2 0x5f9b60 in xzalloc__ ./lib/util.c:135:12
>     3 0x5f9c25 in xzalloc ./ovs/lib/util.c:169:12
>     4 0x5d4899 in ovsdb_idl_txn_add_map_op ./lib/ovsdb-idl.c:4175:29
>     5 0x5d4758 in ovsdb_idl_txn_write_partial_map ./lib/ovsdb-idl.c:4332:5
>     6 0x53cbe8 in idltest_simple2_update_smap_setkey ./tests/idltest.c:4701:5
>     7 0x526fe2 in do_idl_partial_update_map_column ./tests/test-ovsdb.c:3027:5
>     8 0x59d99c in ovs_cmdl_run_command__ ./lib/command-line.c:247:17
>     9 0x59d79a in ovs_cmdl_run_command ./lib/command-line.c:278:5
>     10 0x51d458 in main ./tests/test-ovsdb.c:80:5
>     11 0x7f0a20a79b74 in __libc_start_main (/lib64/libc.so.6+0x27b74)
>
> Signed-off-by: Xavier Simonart <[email protected]>

I've tested it out a bit and confirmed that the memory leak does happen.

Acked-by: Mike Pattrick <[email protected]>

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to