[ovs-git] [openvswitch/ovs] 6ff9af: ovsdb-tool: fix memory leak while running "db-is-s...
damijans
noreply at github.com
Thu Mar 19 21:38:05 UTC 2020
Branch: refs/heads/branch-2.12
Home: https://github.com/openvswitch/ovs
Commit: 6ff9af2163d50e2b0c606525bcc047055bb8c795
https://github.com/openvswitch/ovs/commit/6ff9af2163d50e2b0c606525bcc047055bb8c795
Author: Damijan Skvarc <damjan.skvarc at gmail.com>
Date: 2020-03-19 (Thu, 19 Mar 2020)
Changed paths:
M ovsdb/ovsdb-tool.c
Log Message:
-----------
ovsdb-tool: fix memory leak while running "db-is-standalone" command
problem is reported by valgrind while running functional tests:
==21043== 160 (88 direct, 72 indirect) bytes in 1 blocks are definitely lost in loss record 7 of 8
==21043== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==21043== by 0x45EE2E: xmalloc (util.c:138)
==21043== by 0x40CB81: ovsdb_log_open (log.c:270)
==21043== by 0x406B4F: do_db_has_magic.isra.9 (ovsdb-tool.c:563)
==21043== by 0x438670: ovs_cmdl_run_command__ (command-line.c:223)
==21043== by 0x438720: ovs_cmdl_run_command (command-line.c:254)
==21043== by 0x405A4C: main (ovsdb-tool.c:79)
problem was in do_db_has_magic() which opens log file which is never closed.
Signed-off-by: Damijan Skvarc <damjan.skvarc at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
More information about the git
mailing list