lib: Fix netbsd compilation error.
[cascardo/ovs.git] / tests / test-ovsdb.c
index 15f41b0..670a141 100644 (file)
@@ -1296,8 +1296,14 @@ do_query_distinct(struct ovs_cmdl_context *ctx)
     }
     json_destroy(json);
 
+    for (i = 0; i < n_classes; i++) {
+        ovsdb_row_destroy(classes[i].example);
+    }
+
     ovsdb_table_destroy(table); /* Also destroys 'ts'. */
 
+    free(rows);
+    free(classes);
     exit(exit_code);
 }