Re: [ovs-dev] [PATCH v2] table: Fix freeing global variable.

2024-05-17 Thread Ilya Maximets
On 5/15/24 17:52, Simon Horman wrote: > On Wed, May 15, 2024 at 02:14:13PM +0800, Yunjian Wang via dev wrote: >> From: Pengfei Sun >> >> In function shash_replace_nocopy, argument to free() is the address >> of a global variable (argument passed by function table_print_json__), >> which is not

Re: [ovs-dev] [PATCH v2] table: Fix freeing global variable.

2024-05-15 Thread Simon Horman
On Wed, May 15, 2024 at 02:14:13PM +0800, Yunjian Wang via dev wrote: > From: Pengfei Sun > > In function shash_replace_nocopy, argument to free() is the address > of a global variable (argument passed by function table_print_json__), > which is not memory allocated by malloc(). > >

Re: [ovs-dev] [PATCH v2] table: Fix freeing global variable.

2024-05-15 Thread Eelco Chaudron
On 15 May 2024, at 8:14, Yunjian Wang via dev wrote: > From: Pengfei Sun > > In function shash_replace_nocopy, argument to free() is the address > of a global variable (argument passed by function table_print_json__), > which is not memory allocated by malloc(). > > ovsdb-client -f json

[ovs-dev] [PATCH v2] table: Fix freeing global variable.

2024-05-15 Thread Yunjian Wang via dev
From: Pengfei Sun In function shash_replace_nocopy, argument to free() is the address of a global variable (argument passed by function table_print_json__), which is not memory allocated by malloc(). ovsdb-client -f json monitor Open_vSwitch --timestamp ASan reports: