[ovs-git] [openvswitch/ovs] 9a99dc: learn: Fix memory leak in learn_parse_sepc()
GitHub
noreply at github.com
Mon Apr 24 16:24:47 UTC 2017
Branch: refs/heads/branch-2.7
Home: https://github.com/openvswitch/ovs
Commit: 9a99dca0cbb2fcc05563b1353649510faa095bf5
https://github.com/openvswitch/ovs/commit/9a99dca0cbb2fcc05563b1353649510faa095bf5
Author: Yi-Hung Wei <yihung.wei at gmail.com>
Date: 2017-04-24 (Mon, 24 Apr 2017)
Changed paths:
M lib/learn.c
Log Message:
-----------
learn: Fix memory leak in learn_parse_sepc()
In testcase "ofproto-dpif - fragment handling - actions", valgrind reports
memeory leaks with the following call stack.
xmalloc (util.c:112)
xvasprintf (util.c:176)
xasprintf (util.c:272)
mf_parse_subfield__ (nx-match.c:1939)
mf_parse_subfield (nx-match.c:1991)
learn_parse_spec (learn.c:242)
learn_parse__ (learn.c:436)
learn_parse (learn.c:464)
parse_LEARN (ofp-actions.c:4670)
ofpact_parse (ofp-actions.c:8231)
ofpacts_parse__ (ofp-actions.c:8278)
ofpacts_parse (ofp-actions.c:8350)
ofpacts_parse_copy (ofp-actions.c:8368)
parse_ofp_str__ (ofp-parse.c:543)
parse_ofp_str (ofp-parse.c:596)
parse_ofp_flow_mod_str (ofp-parse.c:1024)
ofctl_flow_mod (ovs-ofctl.c:1496)
ovs_cmdl_run_command__ (command-line.c:115)
main (ovs-ofctl.c:147)
Signed-off-by: Yi-Hung Wei <yihung.wei at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
More information about the git
mailing list