[ovs-dev] [PATCH 3/3] ovs-ofctl: Fix memory leak in bundle_print_errors().

Ben Pfaff blp at ovn.org
Tue Nov 22 18:58:03 UTC 2016


On Mon, Nov 21, 2016 at 01:42:41PM -0800, Yi-Hung Wei wrote:
> In testcase "ofproto - bundle group mod with mod and add_or_mod command",
> valgrind reports a memory leak with the following call stack.
>     xmalloc (util.c:112)
>     ofpbuf_resize__ (ofpbuf.c:246)
>     ofpbuf_push_uninit (ofpbuf.c:436)
>     ofpbuf_push (ofpbuf.c:459)
>     ofperr_decode_msg (ofp-errors.c:332)
>     bundle_print_errors (ovs-ofctl.c:692)
>     bundle_transact.constprop.25 (ovs-ofctl.c:728)
>     bundle_group_mod__ (ovs-ofctl.c:2663)
>     ofctl_group_mod__ (ovs-ofctl.c:2681)
>     ofctl_group_mod (ovs-ofctl.c:2736)
>     ovs_cmdl_run_command__ (command-line.c:115)
>     main (ovs-ofctl.c:151)
> 
> Signed-off-by: Yi-Hung Wei <yihung.wei at gmail.com>

Thanks for the bug fixes!  I applied these to master and backported the
relevant ones to branch-2.6.  It appears that none of these bugs existed
before 2.6.


More information about the dev mailing list