diff options
author | Yunjian Wang <wangyunjian@huawei.com> | 2022-06-06 19:06:38 +0800 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2022-06-28 13:24:47 +0200 |
commit | cb9ae5f0fd047cba19725841739432707db1c525 (patch) | |
tree | 11064c8b7f27a167f19248d23951ee6e50a691d7 /ovsdb | |
parent | 299050c2d07ea8a3afc2aa04b98dccd6f2f97402 (diff) | |
download | openvswitch-cb9ae5f0fd047cba19725841739432707db1c525.tar.gz |
ovsdb: Fix memory leak on error path in ovsdb_file_read__().
Found by Coverity.
Fixes: 1b1d2e6daa56 ("ovsdb: Introduce experimental support for clustered databases.")
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Mike Pattrick <mkp@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'ovsdb')
-rw-r--r-- | ovsdb/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ovsdb/file.c b/ovsdb/file.c index 9f44007d9..ca80c2823 100644 --- a/ovsdb/file.c +++ b/ovsdb/file.c @@ -524,6 +524,7 @@ ovsdb_file_read__(const char *filename, bool rw, error = ovsdb_txn_replay_commit(txn); if (error) { + ovsdb_error_destroy(error); ovsdb_storage_unread(storage); break; } |