projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b8dbc8
)
ovsdb-idl: Fix memory leak committing a no-op transaction.
author
Ben Pfaff
<blp@nicira.com>
Tue, 12 Jan 2010 18:51:52 +0000
(10:51 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 12 Jan 2010 22:28:01 +0000
(14:28 -0800)
Partial fix for bug #2373.
lib/ovsdb-idl.c
patch
|
blob
|
history
diff --git
a/lib/ovsdb-idl.c
b/lib/ovsdb-idl.c
index 29d1d0c4016fac13cbd29f7556f095150297dcd1..635dcccb48ba1b2b2e28734210a8c231d43f9a85 100644
(file)
--- a/
lib/ovsdb-idl.c
+++ b/
lib/ovsdb-idl.c
@@
-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(