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:13:17 -0800 |
commit | 9582c4f577017c9a8b00bbd689bc9a918d6a090d (patch) | |
tree | 727b6228182b86d1a0e7b13cabcbf2f498d812e7 /lib | |
parent | 801d2b2a1de3db51dc9d41ba746ad228c6d1e740 (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>
Diffstat (limited to 'lib')
-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 0cb07596..fbf4bba6 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. @@ -2145,6 +2145,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; } |