From 2f3ca7ea710ccfb1be4988e12ea265d37f41e971 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 12 Jan 2010 10:51:52 -0800 Subject: [PATCH] ovsdb-idl: Fix memory leak committing a no-op transaction. Partial fix for bug #2373. --- lib/ovsdb-idl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c index 29d1d0c4..635dcccb 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( -- 2.30.2