Re: [ovs-dev] [PATCH] ovsdb-server: Fix schema leak while reading db.

2020-05-28 Thread Ilya Maximets
On 5/27/20 1:52 AM, Han Zhou wrote: > > > On Fri, May 15, 2020 at 9:25 AM Ilya Maximets > wrote: >> >> parse_txn() function doesn't always take ownership of the 'schema' >> passed.  So, if the schema of the clustered db has same version as the >> one that already in us

Re: [ovs-dev] [PATCH] ovsdb-server: Fix schema leak while reading db.

2020-05-26 Thread Han Zhou
On Fri, May 15, 2020 at 9:25 AM Ilya Maximets wrote: > > parse_txn() function doesn't always take ownership of the 'schema' > passed. So, if the schema of the clustered db has same version as the > one that already in use, parse_txn() will not use it, resulting with a > memory leak: > > 7,827 (5

[ovs-dev] [PATCH] ovsdb-server: Fix schema leak while reading db.

2020-05-15 Thread Ilya Maximets
parse_txn() function doesn't always take ownership of the 'schema' passed. So, if the schema of the clustered db has same version as the one that already in use, parse_txn() will not use it, resulting with a memory leak: 7,827 (56 direct, 7,771 indirect) bytes in 1 blocks are definitely lost