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:36:34 -0800 |
commit | 05bae3d993e8149c8a2a6346452f0e723253e92b (patch) | |
tree | bebc47e0c498b1be7a7a4e0f9c7c8149f70a9c02 | |
parent | 9bd11e6f86d3a9f6ad827f6945bf5a1572b98da6 (diff) | |
download | openvswitch-05bae3d993e8149c8a2a6346452f0e723253e92b.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 19ae16fe5..609650da7 100644 --- a/lib/ovsdb-idl.c +++ b/lib/ovsdb-idl.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2009, 2010, 2011 Nicira Networks. +/* Copyright (c) 2009, 2010, 2011, 2013 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -2018,6 +2018,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; } |