test-sflow: Fix memory leak in main function.
authorIlya Maximets <i.maximets@samsung.com>
Thu, 24 Dec 2015 10:22:53 +0000 (13:22 +0300)
committerBen Pfaff <blp@ovn.org>
Mon, 4 Jan 2016 19:25:42 +0000 (11:25 -0800)
commitd1a74e5e4ff438f805e94ead2440c5f3fa56ffdc
treeebac6563578505e0785aec4dac56e263f1cf531e
parent5077bbe921f6cdd359764a238736c37d3adc5c0e
test-sflow: Fix memory leak in main function.

Reported by valgrind on test case 886.

 912 (24 direct, 888 indirect) bytes in 1 blocks are definitely lost
    at malloc
    by xmalloc (util.c:112)
    by unixctl_server_create (unixctl.c:250)
    by test_sflow_main (test-sflow.c:688)
    by ovstest_wrapper_test_sflow_main__ (test-sflow.c:786)
    by ovs_cmdl_run_command (command-line.c:121)
    by main (ovstest.c:132)

 1,500 bytes in 1 blocks are definitely lost
    at malloc
    by xmalloc (util.c:112)
    by ofpbuf_init (ofpbuf.c:124)
    by test_sflow_main (test-sflow.c:696)
    by ovstest_wrapper_test_sflow_main__ (test-sflow.c:786)
    by ovs_cmdl_run_command (command-line.c:121)
    by main (ovstest.c:132)

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
tests/test-sflow.c