diff options
author | William Tu <u9012063@gmail.com> | 2015-12-23 10:58:15 -0800 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2015-12-23 13:03:58 -0800 |
commit | 7ef28119d5984f5e29e07ba4102fc0b680c2a6c9 (patch) | |
tree | 97762528f663722c4231f39e06a88941f71bf920 /AUTHORS | |
parent | dfb21e966fb73a8017869c0f7134028a5213ff90 (diff) | |
download | openvswitch-7ef28119d5984f5e29e07ba4102fc0b680c2a6c9.tar.gz |
ovsdb-server: Fix memory leak using perf counter without initialization.
perf_counter_accumulate() is invoked without perf_counters_init() being
called first, which leads to a memory leak reported by Valgrind (test
cases 104, 106, and 107). A call trace is below:
xmalloc (util.c:112)
shash_add_nocopy__ (shash.c:109)
shash_add_nocopy (shash.c:121)
shash_add (shash.c:129)
shash_add_once (shash.c:136)
shash_add_assert (shash.c:146)
perf_counter_init (perf-counter.c:86)
perf_counter_accumulate (perf-counter.c:95)
ovsdb_txn_commit (transaction.c:850)
ovsdb_file_open__ (file.c:217)
open_db (ovsdb-server.c:418)
main (ovsdb-server.c:263)
Signed-off-by: William Tu <u9012063@gmail.com>
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Co-authored-by: Daniele Di Proietto <diproiettod@vmware.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'AUTHORS')
-rw-r--r-- | AUTHORS | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -215,6 +215,7 @@ Wei Li liw@dtdream.com Wei Yongjun yjwei@cn.fujitsu.com Wenyu Zhang wenyuz@vmware.com William Fulton +William Tu u9012063@gmail.com YAMAMOTO Takashi yamamoto@midokura.com Yasuhito Takamiya yasuhito@gmail.com yinpeijun yinpeijun@huawei.com |