diff options
author | Ben Pfaff <blp@nicira.com> | 2013-01-24 14:19:20 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-01-31 15:28:29 -0800 |
commit | 25e7380808d75589e9e92d3d82bca239ee2aa22d (patch) | |
tree | da5f1f116509d4e2c638ca817b3d4d67423292d3 | |
parent | 060dd6d042b2f71d239285b411819bbc6bf56173 (diff) | |
download | openvswitch-25e7380808d75589e9e92d3d82bca239ee2aa22d.tar.gz |
ovsdb-idl: Fix memory leak on error path.
Found by Coverity.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
-rw-r--r-- | lib/ovsdb-idl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c index 3d4cbd448..c3b70c1ac 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. @@ -2125,6 +2125,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; } |