ovsdb: Fix memory leak on error path in ovsdb_file_read__().
Found by Coverity.
Fixes: ("ovsdb: Introduce experimental support for clustered databases.")
Acked-by: Mike Pattrick
@@ -524,6 +524,7 @@ ovsdb_file_read__(const char *filename, bool rw,
error = ovsdb_txn_replay_commit(txn);
if (error) {
+ ovsdb_error_destroy(error);
ovsdb_storage_unread(storage);
break;
}
