From: Yunjian Wang <[email protected]>

Fixes: bd76d25d8b3b("ovsdb: Add simple constraints.")
Signed-off-by: Yunjian Wang <[email protected]>
---
 lib/ovsdb-types.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/ovsdb-types.c b/lib/ovsdb-types.c
index 20a8444..50a32a7 100644
--- a/lib/ovsdb-types.c
+++ b/lib/ovsdb-types.c
@@ -364,6 +364,7 @@ ovsdb_base_type_from_json(struct ovsdb_base_type *base,
 
     error = ovsdb_atomic_type_from_json(&base->type, type);
     if (error) {
+        ovsdb_error_destroy(ovsdb_parser_destroy(&parser));
         return error;
     }
 
-- 
1.8.3.1


_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to