From: Ben Pfaff Date: Tue, 12 Jan 2010 18:51:52 +0000 (-0800) Subject: ovsdb-idl: Fix memory leak committing a no-op transaction. X-Git-Tag: v1.0.0~259^2~305 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=2f3ca7ea710ccfb1be4988e12ea265d37f41e971;p=sliver-openvswitch.git ovsdb-idl: Fix memory leak committing a no-op transaction. Partial fix for bug #2373. --- diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c index 29d1d0c40..635dcccb4 100644 --- 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(