2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

ovsdb-idl: Fix memory leak committing a no-op transaction.

Partial fix for bug #2373.
This commit is contained in:
Ben Pfaff
2010-01-12 10:51:52 -08:00
parent 7b8dbc8d8f
commit 2f3ca7ea71

View File

@@ -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(