summaryrefslogtreecommitdiff
path: root/tests/test-ovsdb.c
diff options
context:
space:
mode:
authorWilliam Tu <u9012063@gmail.com>2016-01-22 13:04:50 -0800
committerBen Pfaff <blp@ovn.org>2016-02-05 16:08:06 -0800
commitdd7e1cbd1185491452dff36e81e318a8e69c2da6 (patch)
tree946e0859174e50dd04815deaafa74bfad338f097 /tests/test-ovsdb.c
parent31a6d02983c60416ffe6e38adf0fff0326fdf677 (diff)
downloadopenvswitch-dd7e1cbd1185491452dff36e81e318a8e69c2da6.tar.gz
test-ovsdb: Fix memory leak reported by valgrind.
Testcase 1311, 1312: Boolean-distinct queries on scalars, reports leak below: xmalloc (util.c:112) do_query_distinct (test-ovsdb.c:1208) ovs_cmdl_run_command (command-line.c:121) main (test-ovsdb.c:72) Signed-off-by: William Tu <u9012063@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'tests/test-ovsdb.c')
-rw-r--r--tests/test-ovsdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test-ovsdb.c b/tests/test-ovsdb.c
index 15f41b0df..1fbe378f2 100644
--- a/tests/test-ovsdb.c
+++ b/tests/test-ovsdb.c
@@ -1298,6 +1298,8 @@ do_query_distinct(struct ovs_cmdl_context *ctx)
ovsdb_table_destroy(table); /* Also destroys 'ts'. */
+ free(rows);
+ free(classes);
exit(exit_code);
}