mirror of
https://github.com/openvswitch/ovs
synced 2025-09-03 15:55:19 +00:00
ovsdb-types: Fix memory leak on error path.
Fixes: bd76d25d8b
("ovsdb: Add simple constraints.")
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user