mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
ovsdb-idl: Fix memory leak committing a no-op transaction.
Partial fix for bug #2373.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (c) 2009 Nicira Networks.
|
||||
/* Copyright (c) 2009, 2010 Nicira Networks.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -1121,6 +1121,7 @@ ovsdb_idl_txn_commit(struct ovsdb_idl_txn *txn)
|
||||
|
||||
if (!any_updates) {
|
||||
txn->status = TXN_UNCHANGED;
|
||||
json_destroy(operations);
|
||||
} else if (!jsonrpc_session_send(
|
||||
txn->idl->session,
|
||||
jsonrpc_create_request(
|
||||
|
Reference in New Issue
Block a user