]> git.proxmox.com Git - mirror_ovs.git/commit
ovsdb-idl: Fix memory leak
authorYi-Hung Wei <yihung.wei@gmail.com>
Fri, 7 Apr 2017 21:43:42 +0000 (14:43 -0700)
committerBen Pfaff <blp@ovn.org>
Mon, 24 Apr 2017 16:27:47 +0000 (09:27 -0700)
commitd927cd6e7334c6af1468da3d14b32f04a5a4a161
tree404b46155e9688b4aa35c1222e5f3c7c91fa8f73
parentc71caf1b28da5d00de7feea50420638f708f3f63
ovsdb-idl: Fix memory leak

In testcase "simple idl, conditional, multiple clauses in condition - C",
valgrind reports a memory leak with the following call stack.
    xmalloc (util.c:112)
    resize (hmap.c:100)
    ovsdb_idl_condition_clone (ovsdb-idl.c:1075)
    ovsdb_idl_set_condition (ovsdb-idl.c:1095)
    update_conditions (test-ovsdb.c:2299)
    do_idl (test-ovsdb.c:2388)
    ovs_cmdl_run_command__ (command-line.c:115)
    main (test-ovsdb.c:73)

Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/ovsdb-idl.c