mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 22:35:15 +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");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with 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) {
|
if (!any_updates) {
|
||||||
txn->status = TXN_UNCHANGED;
|
txn->status = TXN_UNCHANGED;
|
||||||
|
json_destroy(operations);
|
||||||
} else if (!jsonrpc_session_send(
|
} else if (!jsonrpc_session_send(
|
||||||
txn->idl->session,
|
txn->idl->session,
|
||||||
jsonrpc_create_request(
|
jsonrpc_create_request(
|
||||||
|
Reference in New Issue
Block a user