X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ovsdb%2Ffile.c;fp=ovsdb%2Ffile.c;h=50c50e83e1bf4f6730390055c5ff7ba56fc0a77a;hb=dde0c4faf54836833388191b405ac2f81dda4b6c;hp=605e9cba32f3a2d5e2ae308776b51cac1a674150;hpb=dcc7dcb28cd274f4bd36dc41f411b4865e5e6458;p=sliver-openvswitch.git diff --git a/ovsdb/file.c b/ovsdb/file.c index 605e9cba3..50c50e83e 100644 --- a/ovsdb/file.c +++ b/ovsdb/file.c @@ -333,10 +333,9 @@ ovsdb_file_txn_row_from_json(struct ovsdb_txn *txn, struct ovsdb_table *table, error = ovsdb_file_update_row_from_json(new, converting, json); if (error) { ovsdb_row_destroy(new); + } else { + ovsdb_txn_row_insert(txn, new); } - - ovsdb_txn_row_insert(txn, new); - return error; } }