diff options
author | Yi-Hung Wei <yihung.wei@gmail.com> | 2016-11-21 13:42:40 -0800 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2016-11-22 10:48:06 -0800 |
commit | 18dc96b0f1cd483ccf4718c112c9af340733dd62 (patch) | |
tree | 0b191a72ba88034ba59b043d9ec1ea0e623efab2 /lib | |
parent | 5a329e85d6489b8c9fa8e573912f6179fde1f701 (diff) | |
download | openvswitch-18dc96b0f1cd483ccf4718c112c9af340733dd62.tar.gz |
ofp-print: Fix memory leak in ofp_print_queue_get_config_reply().
In testcase "OFPT_QUEUE_GET_CONFIG_REPLY - OF1.0", valgrind reports a memory
leak with the following call stack.
xrealloc (util.c:123)
ofp_print_queue_get_config_reply (ofp-print.c:1233)
ofp_to_string__ (ofp-print.c:3458)
ofp_to_string (ofp-print.c:3681)
ofp_print (ofp-print.c:3713)
ofctl_ofp_print (ovs-ofctl.c:4399)
ovs_cmdl_run_command__ (command-line.c:115)
main (ovs-ofctl.c:151)
Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ofp-print.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ofp-print.c b/lib/ofp-print.c index b7b5290ec..7b7c43006 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -1263,6 +1263,7 @@ ofp_print_queue_get_config_reply(struct ds *string, ofp_print_error(string, retval); } ds_chomp(string, ' '); + free(queues); } static void |