diff options
author | Ben Pfaff <blp@nicira.com> | 2013-01-24 14:19:20 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-01-31 14:15:58 -0800 |
commit | c6821ba124025a85c1992d652eb99e87521e1d09 (patch) | |
tree | b0ef6cdc8c839c86aa247e78b6f5af00646e4d9d | |
parent | 44e34a40e9d8dad74ea8afbee7d7962b301354a5 (diff) |
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 be4b255a..1718969d 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; } |