From: Ben Pfaff Date: Thu, 24 Jan 2013 22:19:20 +0000 (-0800) Subject: ovsdb-idl: Fix memory leak on error path. X-Git-Tag: v1.9.0~8 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;ds=sidebyside;h=c6821ba124025a85c1992d652eb99e87521e1d09;p=cascardo%2Fovs.git ovsdb-idl: Fix memory leak on error path. Found by Coverity. Signed-off-by: Ben Pfaff Acked-by: Ethan Jackson --- diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c index be4b255a3..1718969da 100644 --- a/lib/ovsdb-idl.c +++ b/lib/ovsdb-idl.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2009, 2010, 2011, 2012 Nicira, Inc. +/* Copyright (c) 2009, 2010, 2011, 2012, 2013 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -2146,6 +2146,7 @@ ovsdb_idl_txn_process_insert_reply(struct ovsdb_idl_txn_insert *insert, VLOG_WARN_RL(&syntax_rl, "\"insert\" reply \"uuid\" is not a JSON " "UUID: %s", s); free(s); + ovsdb_error_destroy(error); return false; }